Skip to content

Commit

Permalink
Bluetooth: Fix not setting a pending security level
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vinicius Costa Gomes authored and Gustavo F. Padovan committed Sep 21, 2011
1 parent a492cd5 commit feb45eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bluetooth/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit feb45eb

Please sign in to comment.