mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-04 09:07:52 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user