aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-03-20 02:18:14 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-03-20 02:22:07 -0400
commit39adbffe4b16285c54016d3e64471396354ae49f (patch)
tree81196bfad50006fea2eec9c9175705fdd267f6d3 /include/net/bluetooth
parent40b552aa5a0bfa785bc7ddb5c2d7965b1e0bb08d (diff)
Bluetooth: Fix passkey endianess in user_confirm and notify_passkey
The passkey_notify and user_confirm functions in mgmt.c were expecting different endianess for the passkey, leading to a big endian bug and sparse warning in recently added SMP code. This patch converts both functions to expect host endianess and do the conversion to little endian only when assigning to the mgmt event struct. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index b8cc39a4a9a5..afbea388eda1 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -1236,7 +1236,7 @@ void mgmt_pin_code_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
1236void mgmt_pin_code_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, 1236void mgmt_pin_code_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
1237 u8 status); 1237 u8 status);
1238int mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr, 1238int mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr,
1239 u8 link_type, u8 addr_type, __le32 value, 1239 u8 link_type, u8 addr_type, u32 value,
1240 u8 confirm_hint); 1240 u8 confirm_hint);
1241int mgmt_user_confirm_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, 1241int mgmt_user_confirm_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
1242 u8 link_type, u8 addr_type, u8 status); 1242 u8 link_type, u8 addr_type, u8 status);