Bluetooth: Fix double L2CAP connection request
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 6 Feb 2009 22:56:36 +0000 (23:56 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:41 +0000 (06:14 +0100)
commit6a8d3010b313d99adbb28f1826fac0234395bb26
treee116cd7033e05e0e59b225484991e2a27188fc3e
parent984947dc64f82bc6cafa4d84ba1a139718f634a8
Bluetooth: Fix double L2CAP connection request

If the remote L2CAP server uses authentication pending stage and
encryption is enabled it can happen that a L2CAP connection request is
sent twice due to a race condition in the connection state machine.

When the remote side indicates any kind of connection pending, then
track this state and skip sending of L2CAP commands for this period.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap.c