From: Vinicius Costa Gomes Date: Thu, 25 Aug 2011 23:02:35 +0000 (-0300) Subject: Bluetooth: Fix not setting a pending security level X-Git-Tag: MMI-PSA29.97-13-9~18194^2~83^2~120^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=feb45eb5961b1c8c4f5e9559f48e513d2714b223;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Bluetooth: Fix not setting a pending security level For slave initiated security, we should set a default security level, for now BT_SECURITY_MEDIUM. Signed-off-by: Vinicius Costa Gomes Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 8a7eaaedd67a..63540d0c0db3 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -531,6 +531,8 @@ static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb) BT_DBG("conn %p", conn); + hcon->pending_sec_level = BT_SECURITY_MEDIUM; + if (smp_ltk_encrypt(conn)) return 0;