]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix PSM value for L2CAP connectionless data packets
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 12 Oct 2013 13:01:26 +0000 (06:01 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 12 Oct 2013 14:28:04 +0000 (17:28 +0300)
commit75acc1cc88182c80cbaad7c9778deb933b9f2fd8
treef766c5491731b8f33ec1275e10de1d4b6ea3a855
parent67916af8b8c2c7b85fdbd67ada3056eb2f3e1dd0
Bluetooth: Fix PSM value for L2CAP connectionless data packets

The put_unaligned() for setting the PSM is missing the (__le16 *)
cast. Without this, the PSM information transmitted over the air
are bogus.

In addition, print the used PSM value in the debug message so this
becomes easier to debug in the future.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c