Bluetooth: SMP_BR: Derive LTK after LK refreshed
When the link key of BR is upgraded, the encrypt key refresh event will be notified. The link key is upgraded from weak to strong. The LTK of LE should be derived from strong link key. Start SMP pairing procedure to try to derive LTK from LK. Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
This commit is contained in:
parent
d3997c6eb0
commit
2ac116ea71
1 changed files with 11 additions and 0 deletions
|
@ -2272,6 +2272,17 @@ static void hci_encrypt_key_refresh_complete(struct net_buf *buf)
|
||||||
bt_conn_unref(conn);
|
bt_conn_unref(conn);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IS_ENABLED(CONFIG_BT_SMP)) {
|
||||||
|
/*
|
||||||
|
* Start SMP over BR/EDR if we are pairing and are
|
||||||
|
* central on the link
|
||||||
|
*/
|
||||||
|
if (atomic_test_bit(conn->flags, BT_CONN_BR_PAIRED) &&
|
||||||
|
conn->role == BT_CONN_ROLE_CENTRAL) {
|
||||||
|
bt_smp_br_send_pairing_req(conn);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_BT_CLASSIC */
|
#endif /* CONFIG_BT_CLASSIC */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue