]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix passkey endianess in user_confirm and notify_passkey
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 20 Mar 2014 06:18:14 +0000 (08:18 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 20 Mar 2014 06:22:07 +0000 (23:22 -0700)
commit082fd957b824b0bf6fa45fb9d4c2da1d5d9fc17c
tree81196bfad50006fea2eec9c9175705fdd267f6d3
parente41e1c2d4b457f9d6686cba3810b9345030b035f
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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c
net/bluetooth/smp.c