public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [kernel PATCH v1 0/1] Reason to disable adv during power off without clearing
@ 2023-01-25 21:12 Zhengping Jiang
  2023-01-25 21:12 ` [kernel PATCH v1 1/1] Bluetooth: Don't send HCI commands to remove adv if adapter is off Zhengping Jiang
  0 siblings, 1 reply; 9+ messages in thread
From: Zhengping Jiang @ 2023-01-25 21:12 UTC (permalink / raw)
  To: linux-bluetooth, marcel, luiz.dentz
  Cc: chromeos-bluetooth-upstreaming, Zhengping Jiang, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Johan Hedberg, Paolo Abeni,
	linux-kernel, netdev


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-01-26 22:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-25 21:12 [kernel PATCH v1 0/1] Reason to disable adv during power off without clearing Zhengping Jiang
2023-01-25 21:12 ` [kernel PATCH v1 1/1] Bluetooth: Don't send HCI commands to remove adv if adapter is off Zhengping Jiang
2023-01-25 21:54   ` Luiz Augusto von Dentz
2023-01-25 21:57   ` Reason to disable adv during power off without clearing bluez.test.bot
2023-01-25 23:46     ` Luiz Augusto von Dentz
2023-01-26  4:33       ` Zhengping Jiang
2023-01-26  7:02         ` Luiz Augusto von Dentz
2023-01-26  7:16           ` Zhengping Jiang
2023-01-26 22:20             ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox