Skip to content

Commit

Permalink
bluetooth: host: Make reassembling state not in reassembling
Browse files Browse the repository at this point in the history
After zephyrproject-rtos#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 <menglingao@xiaomi.com>
  • Loading branch information
LingaoM committed Dec 10, 2024
1 parent 247e7fb commit 469c228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 469c228

Please sign in to comment.