Skip to content

Commit ef9675b

Browse files
committed
Bluetooth: hci_sync: Fix not disabling advertising instance
As the code comments on hci_setup_ext_adv_instance_sync suggests the advertising instance needs to be disabled in order to update its parameters, but it was wrongly checking that !adv->pending. Fixes: cba6b75 ("Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 2") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 223e228 commit ef9675b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bluetooth/hci_sync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ int hci_setup_ext_adv_instance_sync(struct hci_dev *hdev, u8 instance)
13451345
* Command Disallowed error, so we must first disable the
13461346
* instance if it is active.
13471347
*/
1348-
if (adv && !adv->pending) {
1348+
if (adv) {
13491349
err = hci_disable_ext_adv_instance_sync(hdev, instance);
13501350
if (err)
13511351
return err;

0 commit comments

Comments
 (0)