Skip to contentSkip to conversation

Bluetooth: Add support for Read Extended Index List management command

PATCH New Marcel Holtmann 1 participant 1 message Mar 14, 2015

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 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.

---
 include/net/bluetooth/mgmt.h | 10 +++++++
 net/bluetooth/mgmt.c         | 70 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)
include/net/bluetooth/mgmt.h +10 -0
index 5bf6af9cee78..d00e33f14207 100644
@@ -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		0x0001
 struct 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