projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a492cd5
)
Bluetooth: Fix not setting a pending security level
author
Vinicius Costa Gomes
<vinicius.gomes@openbossa.org>
Thu, 25 Aug 2011 23:02:35 +0000
(20:02 -0300)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Wed, 21 Sep 2011 15:59:15 +0000
(12:59 -0300)
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>
net/bluetooth/smp.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/smp.c
b/net/bluetooth/smp.c
index 8a7eaaedd67a81786ce0e9f0d841f2567aaf5ed4..63540d0c0db35282cb4bb9fecad0d99319ab3da8 100644
(file)
--- 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;