nimble/ll: Fix assert on aux scan

hci_ev_next was never set to NULL so in case last PDU in chain was
fragmented an assert was triggered since on last chunk (i.e. completed)
we expect hci_ev_next to be NULL.
This commit is contained in:
Andrzej Kaczmarek
2022-01-26 22:26:45 +01:00
parent 1ca036b0cf
commit d020a20d80
+1
View File
@@ -577,6 +577,7 @@ ble_ll_hci_ev_send_ext_adv_report(struct os_mbuf *rxpdu,
ble_ll_hci_event_send(*hci_ev);
*hci_ev = hci_ev_next;
hci_ev_next = NULL;
} while ((offset < data_len) && *hci_ev);
return truncated ? -1 : 0;