Bluetooth: HCI: Add proper tracking for enable status of adv instances
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 2 Aug 2021 23:56:18 +0000 (16:56 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 3 Aug 2021 21:30:49 +0000 (23:30 +0200)
commit102793136ce9dacae77c2d1f8dd6878b480f4b95
tree8152b6a0c0491514ea36160fba6f85ae130a2edb
parent654e6f7700c46017af309aab594f0afdebc30740
Bluetooth: HCI: Add proper tracking for enable status of adv instances

This adds a field to track if advertising instances are enabled or not
and only clear HCI_LE_ADV flag if there is no instance left advertising.

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