mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-13 15:41:17 +00:00
sm: fix sc passkey entry in responder role
This commit is contained in:
parent
7df18c15c3
commit
2886623dc7
@ -2075,9 +2075,10 @@ static void sm_run(void){
|
|||||||
} else {
|
} else {
|
||||||
if (connection->sm_role){
|
if (connection->sm_role){
|
||||||
// responder
|
// responder
|
||||||
connection->sm_engine_state = SM_SC_W4_DHKEY_CHECK_COMMAND;
|
|
||||||
if (setup->sm_stk_generation_method == NK_BOTH_INPUT){
|
if (setup->sm_stk_generation_method == NK_BOTH_INPUT){
|
||||||
connection->sm_engine_state = SM_SC_W2_CALCULATE_G2;
|
connection->sm_engine_state = SM_SC_W2_CALCULATE_G2;
|
||||||
|
} else {
|
||||||
|
sm_sc_prepare_dhkey_check(connection);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// initiator
|
// initiator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user