]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit43b1b8dfb4fa326d89aa5930f88b943cc410cbfa
treef766c5491731b8f33ec1275e10de1d4b6ea3a855
parent4ca048e3a38e9691eb3e390c5eea3acd9b51cd17
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