summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
diff options
context:
space:
mode:
authorJohan Hedberg2011-01-26 12:11:03 +0100
committerGustavo F. Padovan2011-02-08 04:40:05 +0100
commitc542a06c29acbf4ea0024884a198065a10613147 (patch)
tree0e680582a90e9384364a9c6f4dc2c475339a472e /include/net/bluetooth/mgmt.h
parentBluetooth: Add send_mode_rsp convenience function for mgmt.c (diff)
downloadkernel-qcow2-linux-c542a06c29acbf4ea0024884a198065a10613147.tar.gz
kernel-qcow2-linux-c542a06c29acbf4ea0024884a198065a10613147.tar.xz
kernel-qcow2-linux-c542a06c29acbf4ea0024884a198065a10613147.zip
Bluetooth: Implement set_pairable managment command
This patch implements a new set_pairable management command to control the pairable state of local adapters. The state is represented using a new HCI_PAIRABLE flag in the hci_dev struct. For backwards compatibility with older user space versions the HCI_PAIRABLE flag gets automatically set when the existence of an adapter is reported to user space through legacy methods and the HCI_MGMT flag is not set. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r--include/net/bluetooth/mgmt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index f61fd6779ee5..a554802291ed 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -70,6 +70,8 @@ struct mgmt_mode {
#define MGMT_OP_SET_CONNECTABLE 0x0007
+#define MGMT_OP_SET_PAIRABLE 0x0008
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
__le16 opcode;
@@ -103,3 +105,5 @@ struct mgmt_ev_index_removed {
#define MGMT_EV_DISCOVERABLE 0x0007
#define MGMT_EV_CONNECTABLE 0x0008
+
+#define MGMT_EV_PAIRABLE 0x0009