aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-08-02 16:56:18 -0700
committerMarcel Holtmann <marcel@holtmann.org>2021-08-03 23:30:49 +0200
commit102793136ce9dacae77c2d1f8dd6878b480f4b95 (patch)
tree8152b6a0c0491514ea36160fba6f85ae130a2edb /include/net/bluetooth/hci_core.h
parentBluetooth: btusb: Enable MSFT extension for Mediatek Chip (MT7921) (diff)
downloadlinux-dev-102793136ce9dacae77c2d1f8dd6878b480f4b95.tar.xz
linux-dev-102793136ce9dacae77c2d1f8dd6878b480f4b95.zip
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>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 4abe3c494002..b79b31359bf8 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -221,6 +221,7 @@ struct oob_data {
struct adv_info {
struct list_head list;
+ bool enabled;
bool pending;
__u8 instance;
__u32 flags;