From d020a20d80599e18a9c652e0aedc152b8bf27b73 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Wed, 26 Jan 2022 17:45:58 +0100 Subject: [PATCH] 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. --- nimble/controller/src/ble_ll_scan_aux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nimble/controller/src/ble_ll_scan_aux.c b/nimble/controller/src/ble_ll_scan_aux.c index 69ab10cde..9504771d9 100644 --- a/nimble/controller/src/ble_ll_scan_aux.c +++ b/nimble/controller/src/ble_ll_scan_aux.c @@ -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;