diff options
-rw-r--r-- | net/bluetooth/smp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 9883d673873c..deb119875fd9 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c | |||
@@ -589,6 +589,8 @@ static u8 smp_cmd_pairing_req(struct l2cap_conn *conn, struct sk_buff *skb) | |||
589 | if (req->auth_req & SMP_AUTH_BONDING) | 589 | if (req->auth_req & SMP_AUTH_BONDING) |
590 | auth = req->auth_req; | 590 | auth = req->auth_req; |
591 | 591 | ||
592 | conn->hcon->pending_sec_level = authreq_to_seclevel(auth); | ||
593 | |||
592 | build_pairing_cmd(conn, req, &rsp, auth); | 594 | build_pairing_cmd(conn, req, &rsp, auth); |
593 | 595 | ||
594 | key_size = min(req->max_key_size, rsp.max_key_size); | 596 | key_size = min(req->max_key_size, rsp.max_key_size); |