After some discussions on BlueZ meeting, it was decided to have a MGMT API for Broadcaster and Observer roles. The normal flow for Broadcaster is set controller data for any data needed and set broadcaster on. For now, kernel will try to pack as much data as possible for Adv. In future, we may implement a rotation logic to send all data set by userspace. Use unset controller data with respective data_type to remove any data that matches this data_type. After adding or removing controller data, to update Adv data, you need to set broadcaster off and after set broadcaster on, so adv. data can be updated on the controller. To start observer, just set observer to on. Any data will come from device found event. We have patches for userspace that will hit BlueZ ML next week. Jefferson Delfes (5): Bluetooth: Add new commands HCI for LE and BR/EDR Bluetooth: Add set controller data MGMT command Bluetooth: Add unset controller data MGMT command Bluetooth: Add set broadcaster MGMT command Bluetooth: Add set observer MGMT command include/net/bluetooth/hci.h | 30 +++++++ include/net/bluetooth/hci_core.h | 15 ++++ include/net/bluetooth/mgmt.h | 23 ++++++ net/bluetooth/hci_core.c | 48 +++++++++++ net/bluetooth/mgmt.c | 167 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 283 insertions(+) -- 1.7.11.4 -- 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