]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Resume BT_CONNECTED state after LE security elevation
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 7 Aug 2014 19:56:44 +0000 (22:56 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:12 +0000 (08:49 +0200)
commit3ce7391f67f9c1b671001976e42938ac1c0fabe6
tree19ffd2d662432060d174466667c9b97b26c69cf5
parent09e7bce6d676b7eccf64b2729a0ab14b3a29694e
Bluetooth: Resume BT_CONNECTED state after LE security elevation

The LE ATT socket uses a special trick where it temporarily sets
BT_CONFIG state for the duration of a security level elevation. In order
to not require special hacks for going back to BT_CONNECTED state in the
l2cap_core.c code the most reasonable place to resume the state is the
resume callback. This patch adds a new flag to track the pending
security level change and ensures that the state is set back to
BT_CONNECTED in the resume callback in case the flag is set.

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