aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2011-08-25 20:02:35 -0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-09-21 12:59:15 -0300
commitfeb45eb5961b1c8c4f5e9559f48e513d2714b223 (patch)
tree7305a9abb64d7af99d9d1e6538aed05c23979913 /net
parentRevert "Bluetooth: Add support for communicating keys with userspace" (diff)
downloadlinux-dev-feb45eb5961b1c8c4f5e9559f48e513d2714b223.tar.xz
linux-dev-feb45eb5961b1c8c4f5e9559f48e513d2714b223.zip
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 <vinicius.gomes@openbossa.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/smp.c2
1 files changed, 2 insertions, 0 deletions
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;