Bluetooth: Call l2cap_le_conn_ready after notifying channels
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 8 Aug 2014 06:28:04 +0000 (09:28 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:15 +0000 (08:49 +0200)
commit79a0572736ad4b9cac7be72d4402f9c79db8ebaf
tree23ebc2c4451232c257ac0173971383487f549168
parent72847ce02180e8a0be1b23ba53ffe437cdb25d6a
Bluetooth: Call l2cap_le_conn_ready after notifying channels

For most cases it makes no difference whether l2cap_le_conn_ready() is
called before or after calling the channel ready() callbacks, however
for upcoming SMP code we need this as the ready() callback initializes
certain structures that a call to smp_conn_security() from
l2cap_le_conn_ready() depends on. Therefore, move the call to
l2cap_le_conn_ready() after iterating through and notifying channels.

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