Skip to content

Commit f0a4242

Browse files
joerchancarlescufi
authored andcommitted
[nrf fromtree] Bluetooth: host: Fix bug in adv timeout for limited advertiser
Fix bug in adv timeout for limited advertiser when extended advertising features has been enabled. The advertiser was only stopped when configured as an extended advertiser. It should be stopped when configured as a legacy advertiser also. Signed-off-by: Joakim Andersson <[email protected]> (cherry picked from commit 2a2523c) Signed-off-by: Martin Tverdal <[email protected]>
1 parent 7593213 commit f0a4242

File tree

1 file changed

+1
-3
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-3
lines changed

subsys/bluetooth/host/adv.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,9 +1367,7 @@ static void adv_timeout(struct k_work *work)
13671367
dwork = k_work_delayable_from_work(work);
13681368
adv = CONTAINER_OF(dwork, struct bt_le_ext_adv, timeout_work);
13691369

1370-
if (atomic_test_bit(adv->flags, BT_ADV_EXT_ADV)) {
1371-
err = bt_le_ext_adv_stop(adv);
1372-
}
1370+
err = bt_le_ext_adv_stop(adv);
13731371
#else
13741372
err = bt_le_adv_stop();
13751373
#endif

0 commit comments

Comments
 (0)