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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html