This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new d7ae17e2 nimble/ll: Fix failed CRC on AUX_CONNECT_RSP
d7ae17e2 is described below
commit d7ae17e2ebff7d0f6ec09f34af81f9700f06a64b
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Thu Sep 22 20:24:09 2022 +0200
nimble/ll: Fix failed CRC on AUX_CONNECT_RSP
If CRC does not match on AUX_CONNECT_RSP, we should cancel already
scheduled connection as otherwise there will be spurious connection
timeout as scheduler will run uninitialized connection.
---
nimble/controller/src/ble_ll_scan_aux.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nimble/controller/src/ble_ll_scan_aux.c
b/nimble/controller/src/ble_ll_scan_aux.c
index 23f4986e..01e516fd 100644
--- a/nimble/controller/src/ble_ll_scan_aux.c
+++ b/nimble/controller/src/ble_ll_scan_aux.c
@@ -1583,6 +1583,9 @@ ble_ll_scan_aux_rx_pkt_in_for_initiator(struct os_mbuf
*rxpdu,
aux = rxinfo->user_data;
if (rxinfo->flags & BLE_MBUF_HDR_F_IGNORED) {
+ if (aux->flags & BLE_LL_SCAN_AUX_F_W4_CONNECT_RSP) {
+ ble_ll_conn_send_connect_req_cancel();
+ }
ble_ll_scan_aux_free(aux);
ble_ll_scan_chk_resume();
return;