aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/bluetooth/smp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index df91ed28084f..72743f87b22f 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -685,8 +685,7 @@ static u8 smp_cmd_pairing_req(struct l2cap_conn *conn, struct sk_buff *skb)
685{ 685{
686 struct smp_cmd_pairing rsp, *req = (void *) skb->data; 686 struct smp_cmd_pairing rsp, *req = (void *) skb->data;
687 struct smp_chan *smp; 687 struct smp_chan *smp;
688 u8 key_size; 688 u8 key_size, auth;
689 u8 auth = SMP_AUTH_NONE;
690 int ret; 689 int ret;
691 690
692 BT_DBG("conn %p", conn); 691 BT_DBG("conn %p", conn);
@@ -710,8 +709,7 @@ static u8 smp_cmd_pairing_req(struct l2cap_conn *conn, struct sk_buff *skb)
710 skb_pull(skb, sizeof(*req)); 709 skb_pull(skb, sizeof(*req));
711 710
712 /* We didn't start the pairing, so match remote */ 711 /* We didn't start the pairing, so match remote */
713 if (req->auth_req & SMP_AUTH_BONDING) 712 auth = req->auth_req;
714 auth = req->auth_req;
715 713
716 conn->hcon->pending_sec_level = authreq_to_seclevel(auth); 714 conn->hcon->pending_sec_level = authreq_to_seclevel(auth);
717 715