]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Trigger SMP for the appropriate LE CoC errors
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Nov 2014 08:55:19 +0000 (10:55 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 15 Nov 2014 00:46:50 +0000 (01:46 +0100)
commitc96e7302af0866bd7a075013f920ed846538bde4
tree0745d3fcf2ef2ebc750c728b22359444e0564091
parent44afff9846e5583b17e3816dc52c8c8d75527ae6
Bluetooth: Trigger SMP for the appropriate LE CoC errors

The insufficient authentication/encryption errors indicate to the L2CAP
client that it should try to elevate the security level. Since there
really isn't any exception to this rule it makes sense to fully handle
it on the kernel side instead of pushing the responsibility to user
space.

This patch adds special handling of these two error codes and calls
smp_conn_security() with the elevated security level if necessary.

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