Bluetooth: Clean up Set Connectable related code
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Bluetooth: Reorganize set_connectable HCI command sendingnet/ | +20 | 0 replies | |
| 2/5 | Bluetooth: Move move logic into set_connectable complete callbacknet/ | +19 | 0 replies | |
| 3/5 | Bluetooth: Add missing error handling for Set Connectablenet/ | +7 | 0 replies | |
| 4/5 | Bluetooth: Move static advertising functions to avoid forward declarationsnet/ | +28 | 0 replies | |
| 5/5 | Bluetooth: Fix updating advertising data needlesslynet/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Bluetooth: Clean up Set Connectable related code
Hi,
This is a set of cleanup patches (and one fix) split out from my earlier set. I'm hoping to get these in first to make it easier to understand how the code works and what the possible ways of adding LE Advertising hooks are.
The main thing with these patches is that we make a clear separation of what happens if someone uses a raw HCI socket compared to sending a Set Connectable command using the management interface. Now both cases have their clear functions for handling the HCI_CONNECTABLE flag and the necessary mgmt events.
----------------------------------------------------------------
Johan Hedberg (5):
Bluetooth: Reorganize set_connectable HCI command sending
Bluetooth: Move move logic into set_connectable complete callback
Bluetooth: Add missing error handling for Set Connectable
Bluetooth: Move static advertising functions to avoid forward declarations
Bluetooth: Fix updating advertising data needlessly
net/bluetooth/hci_event.c | 2 +- net/bluetooth/mgmt.c | 122 ++++++++++++++++++++++++++++------------------ 2 files changed, 75 insertions(+), 49 deletions(-)