]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b2c4572dca2717e19246875c86a88076f05fb90
tree0a159ff9f6c82805eae6bc7ae330d23cdab3e4f5
parentdabc5e389ec1c51945b94c5b8aa3cc2e8b976de4
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