Skip to content

Reason to disable adv during power off without clearing

Zhengping Jiang linux-bluetooth lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 7 repliesIn review

Changes in v1 from the cover letter

- Mark the advertisement as disabled instead of clearing it.
- Remove the advertisement without sending HCI command if the adapter is off.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Bluetooth: Don't send HCI commands to remove adv if adapter is offnet/bluetooth/hci_sync.c+53 -47 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kernel PATCH v1 0/1] Reason to disable adv during power off without clearing

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(-)
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog