Bluetooth: Add basic discovery commands to the management interface
Subsystems (2)
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.
Signed-off-by Johan Hedberg <[email protected]>
Signed-off-by Anderson Briglia <[email protected]>
--- 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
@@ -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 0x0001struct 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