Skip to content

Bluetooth: Fix mgmt cmd_complete events

Johan Hedberg linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Bluetooth: Add callback to create proper cmd_complete eventsnet/bluetooth/mgmt.c+17 -20 replies
2/10Bluetooth: Store parameter length with pending mgmt commandsnet/bluetooth/mgmt.c+3 -30 replies
3/10Bluetooth: Convert Disconnect mgmt command to use cmd_complete callbacknet/bluetooth/mgmt.c+10 -140 replies
4/10Bluetooth: Use cmd_complete callback for authentication mgmt commandsnet/bluetooth/mgmt.c+14 -220 replies
5/10Bluetooth: Convert Pair Device to use cmd_complete callbacknet/bluetooth/mgmt.c+5 -30 replies
6/10Bluetooth: Convert Unpair Device to use cmd_complete callbacknet/bluetooth/mgmt.c+3 -70 replies
7/10Bluetooth: Convert discovery commands to use cmd_complete callbacknet/bluetooth/mgmt.c+16 -110 replies
8/10Bluetooth: Convert Get Clock Info to use cmd_complete callbacknet/bluetooth/mgmt.c+35 -240 replies
9/10Bluetooth: Fix initializing hci_conn RSSI to invalid valuenet/bluetooth/hci_conn.c+1 -00 replies
10/10Bluetooth: Fix Get Conn Info to use cmd_complete callbacknet/bluetooth/mgmt.c+32 -501 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/10] Bluetooth: Fix mgmt cmd_complete events

Hi,

This patch set introduces an optional callback that can be set for pending mgmt commands so that the generic places sending out these events (powering off and removing adapters) can send out correct events as specified in our mgmt-api.txt. A further benefit of having this callback is that we fix memory leaks caused by hci_conn pointers being stored as part of the pending command user data.

Johan

----------------------------------------------------------------
Johan Hedberg (10):
Bluetooth: Add callback to create proper cmd_complete events
Bluetooth: Store parameter length with pending mgmt commands
Bluetooth: Convert Disconnect mgmt command to use cmd_complete callback
Bluetooth: Use cmd_complete callback for authentication mgmt commands
Bluetooth: Convert Pair Device to use cmd_complete callback
Bluetooth: Convert Unpair Device to use cmd_complete callback
Bluetooth: Convert discovery commands to use cmd_complete callback
Bluetooth: Convert Get Clock Info to use cmd_complete callback
Bluetooth: Fix initializing hci_conn RSSI to invalid value
Bluetooth: Fix Get Conn Info to use cmd_complete callback

 net/bluetooth/hci_conn.c |   1 +
 net/bluetooth/mgmt.c     | 271 ++++++++++++++++++++++-----------------------
 2 files changed, 136 insertions(+), 136 deletions(-)