mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-05 18:40:27 +00:00
sm: return status from encryption complete in SM_EVENT_REENCRYPTION_COMPLETE
This commit is contained in:
parent
aa9b34e571
commit
e28291c183
@ -3513,7 +3513,7 @@ static void sm_event_packet_handler (uint8_t packet_type, uint16_t channel, uint
|
||||
sm_conn->sm_engine_state = SM_INITIATOR_CONNECTED;
|
||||
}
|
||||
} else {
|
||||
status = ERROR_CODE_AUTHENTICATION_FAILURE;
|
||||
status = hci_event_encryption_change_get_status(packet);
|
||||
// set state to 'RE-ENCRYPTION FAILED' to allow pairing but prevent other interactions
|
||||
// also, gap_reconnect_security_setup_active will return true
|
||||
sm_conn->sm_engine_state = SM_GENERAL_REENCRYPTION_FAILED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user