[kernel PATCH v1 0/1] Reason to disable adv during power off without clearing
From: Zhengping Jiang
Date: Wed Jan 25 2023 - 16:12:42 EST
This change was made to keep the same behavior as before the hci_sync
rework. When the adapter is powered off, the advertisement will be
disabled, instead of being cleared. As a result, when the adapter is powered
on, the advertisement can be re-enabled. There is no need to re-register
the same advertisement.
However, if the adv is not cleared and the user requested to remove the
adv when the adapter is off, it will trigger GPIO reset, so we will not
send the HCI command in this case.
Changes in v1:
- Mark the advertisement as disabled instead of clearing it.
- Remove the advertisement without sending HCI command if the adapter is off.
Archie Pusaka (1):
Bluetooth: Don't send HCI commands to remove adv if adapter is off
net/bluetooth/hci_sync.c | 57 +++++++++++++++++++++++++++++++++++++---
1 file changed, 53 insertions(+), 4 deletions(-)
--
2.39.1.456.gfc5497dd1b-goog