Bluetooth: Fix updating SMP keys on BR/EDR
This should be done only for LE links. Change-Id: I3037e5fbceb39de46ec0be389401f5e907837399 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
28711287a5
commit
66f0ad5335
1 changed files with 3 additions and 1 deletions
|
@ -864,8 +864,10 @@ static void hci_encrypt_change(struct net_buf *buf)
|
|||
* losing valid keys if encryption was not successful
|
||||
*
|
||||
* Update keys with last pairing info for proper sec level update.
|
||||
* This is done only for LE transport, for BR/EDR keys are updated on
|
||||
* HCI 'Link Key Notification Event'
|
||||
*/
|
||||
if (conn->encrypt) {
|
||||
if (conn->encrypt && conn->type == BT_CONN_TYPE_LE) {
|
||||
bt_smp_update_keys(conn);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue