]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix L2CAP command reject reason
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Sep 2013 10:05:16 +0000 (13:05 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 18 Sep 2013 21:45:28 +0000 (16:45 -0500)
commit52d71c371165fbdcc96b69c9ff13f2928a2cab8d
tree690e1d08865a2e1b80e622bd59f4cf11d48bb0d9
parentc8c42044eef6f40a9df50980002dc888d5a95900
Bluetooth: Fix L2CAP command reject reason

There are several possible reason codes that can be sent in the command
reject L2CAP packet. Before this patch the code has used a hard-coded
single response code ("command not understood"). This patch adds a
helper function to map the return value of an L2CAP handler function to
the correct command reject reason.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c