Bluetooth: hci_sync: Fix not always pausing advertising when necessary
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 8 Dec 2021 23:43:24 +0000 (15:43 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 21 Dec 2021 21:46:12 +0000 (13:46 -0800)
commit9446bdde51ac9cc8023c732ec0cc05e820ae8d20
treeb4ccd5a3406f4f4c9aeab56f6ffbbc5ecfac45a3
parente96741437ef0a5d18144e790ac894397efda0924
Bluetooth: hci_sync: Fix not always pausing advertising when necessary

hci_pause_advertising_sync shall always pause advertising until
hci_resume_advertising_sync but instance 0x00 doesn't count
in adv_instance_cnt so it was causing it to be skipped.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sync.c