]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd117f07b316980e25543d05e173b211db674914e
tree8152b6a0c0491514ea36160fba6f85ae130a2edb
parent1833e2f8285fd7a06cb54a251a47710871c5c448
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