]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix initial RFCOMM DLC security level
authorJohan Hedberg <johan.hedberg@nokia.com>
Mon, 6 Dec 2010 13:56:17 +0000 (15:56 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 6 Dec 2010 17:47:44 +0000 (15:47 -0200)
commitef4eeace1f07f1f2d53052f0eff950bf634d5018
tree3c5641374b15ee4a31b28cbdc071356058065436
parent9d7b156411fb72b4263be203cbd10a84e4a383a4
Bluetooth: Fix initial RFCOMM DLC security level

Due to commit c225b5c7 connections initiated through TTYs created with
"rfcomm bind ..." would have security level BT_SECURITY_SDP instead of
BT_SECURITY_LOW. This would cause instant connection failure between any
two SSP capable devices due to the L2CAP connect request to RFCOMM being
sent before authentication has been performed. This patch fixes the
regression by always initializing the DLC security level to
BT_SECURITY_LOW.

Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Acked-by: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/rfcomm/core.c