|
@@ -948,6 +948,9 @@ static int smp_cmd_master_ident(struct l2cap_conn *conn, struct sk_buff *skb)
|
|
if (!(smp->remote_key_dist & SMP_DIST_ENC_KEY))
|
|
if (!(smp->remote_key_dist & SMP_DIST_ENC_KEY))
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
|
|
+ /* Mark the information as received */
|
|
|
|
+ smp->remote_key_dist &= ~SMP_DIST_ENC_KEY;
|
|
|
|
+
|
|
skb_pull(skb, sizeof(*rp));
|
|
skb_pull(skb, sizeof(*rp));
|
|
|
|
|
|
hci_dev_lock(hdev);
|
|
hci_dev_lock(hdev);
|
|
@@ -1001,6 +1004,9 @@ static int smp_cmd_ident_addr_info(struct l2cap_conn *conn,
|
|
if (!(smp->remote_key_dist & SMP_DIST_ID_KEY))
|
|
if (!(smp->remote_key_dist & SMP_DIST_ID_KEY))
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
|
|
+ /* Mark the information as received */
|
|
|
|
+ smp->remote_key_dist &= ~SMP_DIST_ID_KEY;
|
|
|
|
+
|
|
skb_pull(skb, sizeof(*info));
|
|
skb_pull(skb, sizeof(*info));
|
|
|
|
|
|
/* Strictly speaking the Core Specification (4.1) allows sending
|
|
/* Strictly speaking the Core Specification (4.1) allows sending
|