Skip to contentSkip to conversation

Bluetooth: Add basic discovery commands to the management interface

PATCH In review [email protected] 1 participant 1 message Apr 27, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 Bluetooth: Add basic discovery commands to the management interface

From: Johan Hedberg <[email protected]>

This patch adds start_discovery and stop_discovery commands to the management interface. Right now their implementation is fairly simplistic and the parameters are fixed to what user space has defaulted to so far.
This is the very initial phase for discovery implementation into the kernel. Next steps include name resolution, LE scanning and bdaddr type handling.

---
 include/net/bluetooth/mgmt.h |    4 ++
 net/bluetooth/mgmt.c         |   76 +++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 79 insertions(+), 1 deletions(-)
include/net/bluetooth/mgmt.h +4 -0
index 6b6ff92..be93dd0 100644
@@ -195,6 +195,10 @@ struct mgmt_cp_remove_remote_oob_data {
 	bdaddr_t bdaddr;
 } __packed;
 
+#define MGMT_OP_START_DISCOVERY		0x001B
+
+#define MGMT_OP_STOP_DISCOVERY		0x001C
+
 #define MGMT_EV_CMD_COMPLETE		0x0001
 struct mgmt_ev_cmd_complete {
 	__le16 opcode;
net/bluetooth/mgmt.c +75 -1

88 lines not on this page · raw message

Signature · 1 line
1.7.1