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:
Andrzej Kaczmarek
2021-11-09 01:08:45 +01:00
parent 3153e20576
commit 99942496b6
+2
View File
@@ -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;
}