nimble/ll: Fix legacy scanning with ext adv support enabled

LL will try to unref aux_data for an ADV_EXT_IND PDU which was received
while legacy scanning was active. This is not correct since such PDU
does not have aux_data allocated and we'll hit an assert.

We can just skip that check in LL context since ISR will mark such PDU
as ignored and it can be handled properly by LL.
This commit is contained in:
Andrzej Kaczmarek
2020-06-30 22:40:12 +02:00
parent cd6da7f680
commit 768e18bdfc
-4
View File
@@ -3060,10 +3060,6 @@ ble_ll_scan_rx_pkt_in_on_aux(uint8_t pdu_type, struct os_mbuf *om,
bool send_hci_report;
int rc;
if (!scansm->ext_scanning) {
goto scan_continue;
}
if (aux_data) {
aux_data->flags_ll |= aux_data->flags_isr;
}