aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-09 08:26:12 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-13 10:01:36 -0500
commit272d90df2d4d065e782cafb08358bd8918bf703a (patch)
treea39907ac765574b8b0bf087a7aa0f37cc580d5a7 /net/bluetooth/hci_event.c
parent88c3df13ca06718e5a8f509ae9cbb1228c10d537 (diff)
Bluetooth: Add address type to user_confirm and user_passkey messages
This patch upadate the user confirm and user passkey mgmt messages to match the latest API specification by adding an address type parameter to them. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index f0c822db28d9..3bf3f4d59bcc 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -960,8 +960,8 @@ static void hci_cc_user_confirm_reply(struct hci_dev *hdev, struct sk_buff *skb)
960 hci_dev_lock(hdev); 960 hci_dev_lock(hdev);
961 961
962 if (test_bit(HCI_MGMT, &hdev->dev_flags)) 962 if (test_bit(HCI_MGMT, &hdev->dev_flags))
963 mgmt_user_confirm_reply_complete(hdev, &rp->bdaddr, 963 mgmt_user_confirm_reply_complete(hdev, &rp->bdaddr, ACL_LINK,
964 rp->status); 964 0, rp->status);
965 965
966 hci_dev_unlock(hdev); 966 hci_dev_unlock(hdev);
967} 967}
@@ -977,6 +977,7 @@ static void hci_cc_user_confirm_neg_reply(struct hci_dev *hdev,
977 977
978 if (test_bit(HCI_MGMT, &hdev->dev_flags)) 978 if (test_bit(HCI_MGMT, &hdev->dev_flags))
979 mgmt_user_confirm_neg_reply_complete(hdev, &rp->bdaddr, 979 mgmt_user_confirm_neg_reply_complete(hdev, &rp->bdaddr,
980 ACL_LINK, 0,
980 rp->status); 981 rp->status);
981 982
982 hci_dev_unlock(hdev); 983 hci_dev_unlock(hdev);
@@ -991,8 +992,8 @@ static void hci_cc_user_passkey_reply(struct hci_dev *hdev, struct sk_buff *skb)
991 hci_dev_lock(hdev); 992 hci_dev_lock(hdev);
992 993
993 if (test_bit(HCI_MGMT, &hdev->dev_flags)) 994 if (test_bit(HCI_MGMT, &hdev->dev_flags))
994 mgmt_user_passkey_reply_complete(hdev, &rp->bdaddr, 995 mgmt_user_passkey_reply_complete(hdev, &rp->bdaddr, ACL_LINK,
995 rp->status); 996 0, rp->status);
996 997
997 hci_dev_unlock(hdev); 998 hci_dev_unlock(hdev);
998} 999}
@@ -1008,6 +1009,7 @@ static void hci_cc_user_passkey_neg_reply(struct hci_dev *hdev,
1008 1009
1009 if (test_bit(HCI_MGMT, &hdev->dev_flags)) 1010 if (test_bit(HCI_MGMT, &hdev->dev_flags))
1010 mgmt_user_passkey_neg_reply_complete(hdev, &rp->bdaddr, 1011 mgmt_user_passkey_neg_reply_complete(hdev, &rp->bdaddr,
1012 ACL_LINK, 0,
1011 rp->status); 1013 rp->status);
1012 1014
1013 hci_dev_unlock(hdev); 1015 hci_dev_unlock(hdev);
@@ -3123,7 +3125,7 @@ static inline void hci_user_confirm_request_evt(struct hci_dev *hdev,
3123 } 3125 }
3124 3126
3125confirm: 3127confirm:
3126 mgmt_user_confirm_request(hdev, &ev->bdaddr, ev->passkey, 3128 mgmt_user_confirm_request(hdev, &ev->bdaddr, ACL_LINK, 0, ev->passkey,
3127 confirm_hint); 3129 confirm_hint);
3128 3130
3129unlock: 3131unlock:
@@ -3140,7 +3142,7 @@ static inline void hci_user_passkey_request_evt(struct hci_dev *hdev,
3140 hci_dev_lock(hdev); 3142 hci_dev_lock(hdev);
3141 3143
3142 if (test_bit(HCI_MGMT, &hdev->dev_flags)) 3144 if (test_bit(HCI_MGMT, &hdev->dev_flags))
3143 mgmt_user_passkey_request(hdev, &ev->bdaddr); 3145 mgmt_user_passkey_request(hdev, &ev->bdaddr, ACL_LINK, 0);
3144 3146
3145 hci_dev_unlock(hdev); 3147 hci_dev_unlock(hdev);
3146} 3148}