Skip to content

Commit 6b72e65

Browse files
joerchannashif
authored andcommitted
Bluetooth: host: Set encryption pending when LE SC bond exists
Set the SMP flag encryption pending in the case where a bond exists with ediv and rand equal to zero, i.e LE Secure Connections bond. Signed-off-by: Joakim Andersson <[email protected]>
1 parent 0cc5dc1 commit 6b72e65

File tree

1 file changed

+1
-0
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-0
lines changed

subsys/bluetooth/host/smp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,6 +2808,7 @@ bool bt_smp_request_ltk(struct bt_conn *conn, uint64_t rand, uint16_t ediv, uint
28082808
BT_SMP_MAX_ENC_KEY_SIZE - enc_size);
28092809
}
28102810

2811+
atomic_set_bit(smp->flags, SMP_FLAG_ENC_PENDING);
28112812
return true;
28122813
}
28132814

0 commit comments

Comments
 (0)