Bluetooth: Fix accepting connect requests for defer_setup
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 14 Jun 2011 09:48:19 +0000 (12:48 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 14 Jun 2011 17:48:01 +0000 (14:48 -0300)
commitdf3c3931ec58cca3409c71b18ad6da0cd71fe163
tree0a159ff9f6c82805eae6bc7ae330d23cdab3e4f5
parent6fdf658c9a0e51e6663f2769f6d310c2843a862b
Bluetooth: Fix accepting connect requests for defer_setup

When authentication completes we shouldn't blindly accept any pending
L2CAP connect requests. If the socket has the defer_setup feature
enabled it should still wait for user space acceptance of the connect
request. The issue only happens for non-SSP connections since with SSP
the L2CAP Connect request may not be sent for non-SDP PSMs before
authentication has completed successfully.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c