summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
diff options
context:
space:
mode:
authorJohan Hedberg2011-01-22 05:09:08 +0100
committerGustavo F. Padovan2011-02-08 04:40:07 +0100
commit17d5c04cb597418a177c3ca18dfde679636dd51c (patch)
tree8f852ff43fe8a4da609a47a9f6e331d289a64a8c /include/net/bluetooth/mgmt.h
parentBluetooth: Add disconnect managment command (diff)
downloadkernel-qcow2-linux-17d5c04cb597418a177c3ca18dfde679636dd51c.tar.gz
kernel-qcow2-linux-17d5c04cb597418a177c3ca18dfde679636dd51c.tar.xz
kernel-qcow2-linux-17d5c04cb597418a177c3ca18dfde679636dd51c.zip
Bluetooth: Add support for connect failed management event
This patch add a new connect failed management event to track failures in connecting to remote devices. It is particularly useful for security mode 3 scenarios when we don't have a connected state while pairing but still need to detect when the connect attempt failed. 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 2c47601b6e63..1d822f2c0f1a 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -184,3 +184,10 @@ struct mgmt_ev_disconnected {
__le16 index;
bdaddr_t bdaddr;
} __packed;
+
+#define MGMT_EV_CONNECT_FAILED 0x000D
+struct mgmt_ev_connect_failed {
+ __le16 index;
+ bdaddr_t bdaddr;
+ __u8 status;
+} __packed;