Bluetooth: Add support for Read Extended Index List management command
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Add support for Read Extended Index List management command
The new Read Extended Index List command allows for reading the complete list of controllers. It includes Configure, Unconfigured and also AMP controllers. This makes it easier for userspace to figure out what kind of controllers are present and what to do with them.
Signed-off-by Marcel Holtmann <[email protected]>
--- include/net/bluetooth/mgmt.h | 10 +++++++ net/bluetooth/mgmt.c | 70 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+)
include/net/bluetooth/mgmt.h +10 -0
@@ -505,6 +505,16 @@ struct mgmt_cp_start_service_discovery { } __packed;#define MGMT_START_SERVICE_DISCOVERY_SIZE 4 +#define MGMT_OP_READ_EXT_INDEX_LIST 0x003C +#define MGMT_READ_EXT_INDEX_LIST_SIZE 0 +struct mgmt_rp_read_ext_index_list { +__le16 num_controllers; +struct { +__le16 index; +__u8 type; + } entry[0 ]; +} __packed; +#define MGMT_EV_CMD_COMPLETE 0x0001struct mgmt_ev_cmd_complete {__le16 opcode;
net/bluetooth/mgmt.c +70 -0
82 lines not on this page · raw message
Signature · 1 line
2.1.0