mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-02 22:13:36 +00:00
sm: keep le device index if available and new pairing without bonding
This commit is contained in:
parent
c5a72e3599
commit
7710ebd2a9
@ -1477,6 +1477,7 @@ static void sm_key_distribution_handle_all_received(sm_connection_t * sm_conn){
|
||||
|
||||
sm_notify_client_index(SM_EVENT_IDENTITY_CREATED, sm_conn->sm_handle, setup->sm_peer_addr_type, setup->sm_peer_address, le_db_index);
|
||||
sm_conn->sm_irk_lookup_state = IRK_LOOKUP_SUCCEEDED;
|
||||
sm_conn->sm_le_db_index = le_db_index;
|
||||
|
||||
#ifdef ENABLE_LE_SIGNED_WRITE
|
||||
// store local CSRK
|
||||
@ -1515,9 +1516,6 @@ static void sm_key_distribution_handle_all_received(sm_connection_t * sm_conn){
|
||||
} else {
|
||||
log_info("Ignoring received keys, bonding not enabled");
|
||||
}
|
||||
|
||||
// keep le_db_index
|
||||
sm_conn->sm_le_db_index = le_db_index;
|
||||
}
|
||||
|
||||
static void sm_pairing_error(sm_connection_t * sm_conn, uint8_t reason){
|
||||
|
Loading…
x
Reference in New Issue
Block a user