aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-12-06 15:56:17 +0200
committerGustavo F. Padovan <padovan@profusion.mobi>2010-12-06 15:47:44 -0200
commit183f732c3f3f307d5673e17b69de6894e1dd2918 (patch)
tree3c5641374b15ee4a31b28cbdc071356058065436
parentd89197c7f34934fbb0f96d938a0d6cfe0b8bcb1c (diff)
downloadkernel_samsung_smdk4412-183f732c3f3f307d5673e17b69de6894e1dd2918.zip
kernel_samsung_smdk4412-183f732c3f3f307d5673e17b69de6894e1dd2918.tar.gz
kernel_samsung_smdk4412-183f732c3f3f307d5673e17b69de6894e1dd2918.tar.bz2
Bluetooth: Fix initial RFCOMM DLC security level
Due to commit 63ce0900 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>
-rw-r--r--net/bluetooth/rfcomm/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c
index fa642aa..432a9a6 100644
--- a/net/bluetooth/rfcomm/core.c
+++ b/net/bluetooth/rfcomm/core.c
@@ -311,6 +311,7 @@ static void rfcomm_dlc_clear_state(struct rfcomm_dlc *d)
d->state = BT_OPEN;
d->flags = 0;
d->mscex = 0;
+ d->sec_level = BT_SECURITY_LOW;
d->mtu = RFCOMM_DEFAULT_MTU;
d->v24_sig = RFCOMM_V24_RTC | RFCOMM_V24_RTR | RFCOMM_V24_DV;