mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 14:42:33 +00:00
fix regression in r3160 that broke security manager
This commit is contained in:
parent
7a5fe7bded
commit
fe9e7f880a
4
ble/sm.c
4
ble/sm.c
@ -1344,8 +1344,8 @@ static void sm_handle_random_result(uint8_t * data){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// retrieve sm_connection provided to sm_aes128_start_encryption
|
// retrieve sm_connection provided to sm_random_start
|
||||||
sm_connection_t * connection = sm_aes128_connection_source;
|
sm_connection_t * connection = sm_random_connection_source;
|
||||||
if (!connection) return;
|
if (!connection) return;
|
||||||
switch (connection->sm_engine_state){
|
switch (connection->sm_engine_state){
|
||||||
case SM_PH2_W4_RANDOM_TK:
|
case SM_PH2_W4_RANDOM_TK:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user