mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-24 22:43:31 +00:00
nimble/ll: Fix rx abort on aux scan
If rx on aux scan is aborted, we need to set LL back to standby.
This commit is contained in:
@@ -764,6 +764,7 @@ ble_ll_scan_aux_rx_isr_start(uint8_t pdu_type, struct ble_mbuf_hdr *rxhdr)
|
||||
if (pdu_type != BLE_ADV_PDU_TYPE_AUX_CONNECT_RSP) {
|
||||
aux_data_current = NULL;
|
||||
ble_ll_scan_aux_break(aux);
|
||||
ble_ll_state_set(BLE_LL_STATE_STANDBY);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
@@ -772,6 +773,7 @@ ble_ll_scan_aux_rx_isr_start(uint8_t pdu_type, struct ble_mbuf_hdr *rxhdr)
|
||||
if (pdu_type != BLE_ADV_PDU_TYPE_ADV_EXT_IND) {
|
||||
aux_data_current = NULL;
|
||||
ble_ll_scan_aux_break(aux);
|
||||
ble_ll_state_set(BLE_LL_STATE_STANDBY);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user