mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 06:32:43 +00:00
Revert "sm: abort pairing if bonding information is not deleted in re-erncryption failed handler with ENABLE_LE_PROACTIVE_AUTHENTICATION"
This reverts commit 19a4077283fa3d57318bfca7160559a2adc3fd5a.
This commit is contained in:
parent
19a4077283
commit
5c1ef14e99
15
src/ble/sm.c
15
src/ble/sm.c
@ -2674,24 +2674,9 @@ static void sm_run(void){
|
||||
}
|
||||
break;
|
||||
default:
|
||||
have_ltk = false;
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_LE_PROACTIVE_AUTHENTICATION
|
||||
// Reject pairing if we (still) have LTK
|
||||
if (have_ltk){
|
||||
memset(ltk, 0, 16);
|
||||
le_device_db_encryption_get(connection->sm_le_db_index, NULL, NULL, ltk, NULL, NULL, NULL, NULL);
|
||||
have_ltk = !sm_is_null_key(ltk);
|
||||
if (have_ltk){
|
||||
connection->sm_le_db_index = -1;
|
||||
sm_pairing_error(connection, SM_REASON_UNSPECIFIED_REASON);
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
sm_init_setup(connection);
|
||||
sm_pairing_started(connection);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user