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)
commit62748ca16f2f79a62d90fb45963233fb10f726c4
tree99b8006b2ce6105bb8a2c1ed6a5b8668d34dfa7f
parentd1244adc4281eb983a7f41b753164233a7b16b55
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