Bluetooth: Add MGMT opcodes for Passkey Entry
authorBrian Gix <bgix@codeaurora.org>
Sun, 13 Nov 2011 06:01:12 +0000 (22:01 -0800)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 16 Nov 2011 18:49:56 +0000 (16:49 -0200)
Signed-off-by: Brian Gix <bgix@codeaurora.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/mgmt.h

index 2e501820f728b049e3aaa62bebb41337550361b9..139610e4341e86dcbd83fd00da3e05be1416cfb8 100644 (file)
@@ -253,6 +253,17 @@ struct mgmt_cp_set_fast_connectable {
        __u8 enable;
 } __packed;
 
+#define MGMT_OP_USER_PASSKEY_REPLY     0x0020
+struct mgmt_cp_user_passkey_reply {
+       bdaddr_t bdaddr;
+       __le32 passkey;
+} __packed;
+
+#define MGMT_OP_USER_PASSKEY_NEG_REPLY 0x0021
+struct mgmt_cp_user_passkey_neg_reply {
+       bdaddr_t bdaddr;
+} __packed;
+
 #define MGMT_EV_CMD_COMPLETE           0x0001
 struct mgmt_ev_cmd_complete {
        __le16 opcode;