From: Johan Hedberg Date: Mon, 16 Sep 2013 10:05:16 +0000 (+0300) Subject: Bluetooth: Fix L2CAP command reject reason X-Git-Tag: v3.13-rc1~105^2~225^2~24^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c2005d6f9128aec77833019f5c134e4c63af9c5;p=pandora-kernel.git 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed