diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-03 01:56:18 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-08-03 23:30:49 +0200 |
commit | 102793136ce9dacae77c2d1f8dd6878b480f4b95 (patch) | |
tree | 8152b6a0c0491514ea36160fba6f85ae130a2edb /include/net | |
parent | Bluetooth: btusb: Enable MSFT extension for Mediatek Chip (MT7921) (diff) | |
download | linux-102793136ce9dacae77c2d1f8dd6878b480f4b95.tar.xz linux-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')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 |
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; |