]> 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)
commite8aac2fd229c8e1c9b2e966a9ca0125e2fd8ad28
tree99b8006b2ce6105bb8a2c1ed6a5b8668d34dfa7f
parent43da6bf8ab85b9bf01c632f5264878e6ebedad9a
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