Skip to content
Commit cca76f15 authored by Michal Narajowski's avatar Michal Narajowski Committed by Carles Cufi
Browse files

Bluetooth: host: Fix advertise stop in adv_timeout()



Call bt_le_adv_stop() if adv == bt_dev.adv (Meaning it is the legacy
advertiser and was started with bt_le_adv_start()), otherwise use
bt_le_ext_adv_stop(), because it was started with bt_le_ext_adv_start().

Failing to stop advertising shouldn't result in assert.

Signed-off-by: default avatarMichał Narajowski <michal.narajowski@codecoup.pl>
parent a614fc02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment