]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix sending L2CAP Create Chan Req
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Tue, 20 Nov 2012 15:16:19 +0000 (17:16 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 20 Nov 2012 17:54:15 +0000 (15:54 -0200)
commitdb871825351521b12943e423e76d2ab9af62d9b7
tree99b8006b2ce6105bb8a2c1ed6a5b8668d34dfa7f
parenta8c3f98fd019f5c0ea32b59a55b5bc74610ce4c3
Bluetooth: Fix sending L2CAP Create Chan Req

When receiving Physical Link Completed event we need to create L2CAP
channel with L2CAP Create Chan Request. Current code was sending
this command only if connection was pending (which is probably
needed in channel move case). If channel is not moved but created
Create Chan should be sent for outgoing channel which is checked
with BT_CONNECT flag.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c