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(-) -- 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