From 469c228d6c50edd6d2aae8ffbb2716977038e6aa Mon Sep 17 00:00:00 2001 From: Lingao Meng Date: Tue, 10 Dec 2024 17:28:18 +0800 Subject: [PATCH] bluetooth: host: Make reassembling state not in reassembling After https://github.com/zephyrproject-rtos/zephyr/pull/74639 If we receive corrupted adv report, will set state to discarding, but if next adv report is new advertiser, will lead ASSERT. Signed-off-by: Lingao Meng --- subsys/bluetooth/host/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/scan.c b/subsys/bluetooth/host/scan.c index 6f154a12e42a9e..8b25f6fad578de 100644 --- a/subsys/bluetooth/host/scan.c +++ b/subsys/bluetooth/host/scan.c @@ -880,7 +880,7 @@ void bt_hci_le_adv_ext_report(struct net_buf *buf) * this is the first report from the new advertiser. * Initialize the new advertiser. */ - __ASSERT_NO_MSG(reassembling_advertiser.state == FRAG_ADV_INACTIVE); + __ASSERT_NO_MSG(reassembling_advertiser.state != FRAG_ADV_REASSEMBLING); init_reassembling_advertiser(&evt->addr, evt->sid); }