aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>2011-04-28 06:07:59 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-28 14:19:43 -0400
commita770bb5aea84ee2509d4775f9959665f96da3b9d (patch)
tree7d7785c39b55ec1e036f2ccadf5e0c34a98c96b7 /include
parent58797bf77234154a84827186bda316a1205bde05 (diff)
Bluetooth: Add secure flag for mgmt_pin_code_req
Extend the mgmt_pin_code_request interface to require secure pin code (16 digit) for authentication. This is a kernel part of the secure pin code requirement notification to user space agent. Code styling fix by Johan Hedberg. Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h2
-rw-r--r--include/net/bluetooth/mgmt.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 2da2eb9f53ac..2995e2e63512 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -777,7 +777,7 @@ int mgmt_connected(u16 index, bdaddr_t *bdaddr);
777int mgmt_disconnected(u16 index, bdaddr_t *bdaddr); 777int mgmt_disconnected(u16 index, bdaddr_t *bdaddr);
778int mgmt_disconnect_failed(u16 index); 778int mgmt_disconnect_failed(u16 index);
779int mgmt_connect_failed(u16 index, bdaddr_t *bdaddr, u8 status); 779int mgmt_connect_failed(u16 index, bdaddr_t *bdaddr, u8 status);
780int mgmt_pin_code_request(u16 index, bdaddr_t *bdaddr); 780int mgmt_pin_code_request(u16 index, bdaddr_t *bdaddr, u8 secure);
781int mgmt_pin_code_reply_complete(u16 index, bdaddr_t *bdaddr, u8 status); 781int mgmt_pin_code_reply_complete(u16 index, bdaddr_t *bdaddr, u8 status);
782int mgmt_pin_code_neg_reply_complete(u16 index, bdaddr_t *bdaddr, u8 status); 782int mgmt_pin_code_neg_reply_complete(u16 index, bdaddr_t *bdaddr, u8 status);
783int mgmt_user_confirm_request(u16 index, bdaddr_t *bdaddr, __le32 value); 783int mgmt_user_confirm_request(u16 index, bdaddr_t *bdaddr, __le32 value);
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 743440615349..0e7de636035d 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -253,6 +253,7 @@ struct mgmt_ev_connect_failed {
253#define MGMT_EV_PIN_CODE_REQUEST 0x000E 253#define MGMT_EV_PIN_CODE_REQUEST 0x000E
254struct mgmt_ev_pin_code_request { 254struct mgmt_ev_pin_code_request {
255 bdaddr_t bdaddr; 255 bdaddr_t bdaddr;
256 __u8 secure;
256} __packed; 257} __packed;
257 258
258#define MGMT_EV_USER_CONFIRM_REQUEST 0x000F 259#define MGMT_EV_USER_CONFIRM_REQUEST 0x000F