Skip to content

Bluetooth: Further refactoring of mgmt API

Johan Hedberg linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Bluetooth: Add helper to get HCI channel of a socketinclude/net/bluetooth/bluetooth.h net/bluetooth/hci_sock.c+6 -00 replies
2/5Bluetooth: Add channel parameter to mgmt_pending_find() APInet/bluetooth/mgmt.c+62 -460 replies
3/5Bluetooth: Add generic mgmt helper APInet/bluetooth/Makefile net/bluetooth/mgmt.c net/bluetooth/mgmt_util.c +1 more+265 -1970 replies
4/5Bluetooth: Add hdev_init callback for HCI channelsinclude/net/bluetooth/hci_core.h net/bluetooth/mgmt.c+4 -20 replies
5/5Bluetooth: Move generic mgmt command dispatcher to hci_sock.cinclude/net/bluetooth/hci_core.h net/bluetooth/hci_sock.c net/bluetooth/mgmt.c+115 -1150 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] Bluetooth: Further refactoring of mgmt API

Hi,

This patch set refactors mgmt command handling further into a new mgmt_util.c file containing helper functions. After this set the old mgmt.c file should only contain purely HCI_CHANNEL_CONTROL related information and we could start introducing new HCI channels using mgmt semantics.

Johan

----------------------------------------------------------------
Johan Hedberg (5):
Bluetooth: Add helper to get HCI channel of a socket
Bluetooth: Add channel parameter to mgmt_pending_find() API
Bluetooth: Add generic mgmt helper API
Bluetooth: Add hdev_init callback for HCI channels
Bluetooth: Move generic mgmt command dispatcher to hci_sock.c

 include/net/bluetooth/bluetooth.h |   1 +
 include/net/bluetooth/hci_core.h  |   4 +-
 net/bluetooth/Makefile            |   2 +-
 net/bluetooth/hci_sock.c          | 121 +++++++++++-
 net/bluetooth/mgmt.c              | 393 +++++--------------------------------
 net/bluetooth/mgmt_util.c         | 210 ++++++++++++++++++++
 net/bluetooth/mgmt_util.h         |  53 +++++
 7 files changed, 438 insertions(+), 346 deletions(-)
 create mode 100644 net/bluetooth/mgmt_util.c
 create mode 100644 net/bluetooth/mgmt_util.h