]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit722643bf5630fcc7026a9085f6193306debee894
tree23ebc2c4451232c257ac0173971383487f549168
parentee413ea4bfb7b9c1034213fc776ee36e102d45d6
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