Bluetooth: Remove special handling of ATT in l2cap_security_cfm()
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 7 Aug 2014 19:56:45 +0000 (22:56 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:13 +0000 (08:49 +0200)
commit191eb398c677444bc08cb4497467ca9e2b8696bc
tree274364445e994cd60a5e000be4aceeed8956cb8f
parentd52deb17489b8155e031fb1a9f116c602d719e11
Bluetooth: Remove special handling of ATT in l2cap_security_cfm()

With the update to sk->resume() and __l2cap_no_conn_pending() we
no-longer need to have special handling of ATT channels in the
l2cap_security_cfm() function. The chan->sec_level update when
encryption has been enabled is safe to do for any kind of channel, and
the loop takes later care of calling chan->ready() or chan->resume() if
necessary.

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