Skip to content

Commit 2d7e923

Browse files
author
Mika Leppänen
committed
Corrected supplicant 4WH timeout after Message 1
Supplicant did not terminate properly if Message 3 was not received i.e. timeout occurred on wait for Message 3 state.
1 parent 6cde07a commit 2d7e923

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/Security/protocols/fwh_sec_prot/supp_fwh_sec_prot.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,15 @@ static void supp_fwh_sec_prot_state_machine(sec_prot_t *prot)
406406
sec_prot_keys_ptk_eui_64_write(prot->sec_keys, data->remote_eui64);
407407

408408
data->common.ticks = 60 * 10; // 60 seconds
409+
// KMP-FINISHED.indication
410+
prot->finished_ind(prot, sec_prot_result_get(&data->common), prot->sec_keys);
409411
sec_prot_state_set(prot, &data->common, FWH_STATE_MESSAGE_3_RETRY_WAIT);
410412
} else {
411413
tr_info("4WH: finish");
414+
// KMP-FINISHED.indication
415+
prot->finished_ind(prot, sec_prot_result_get(&data->common), prot->sec_keys);
416+
sec_prot_state_set(prot, &data->common, FWH_STATE_FINISHED);
412417
}
413-
414-
// KMP-FINISHED.indication
415-
prot->finished_ind(prot, sec_prot_result_get(&data->common), prot->sec_keys);
416418
break;
417419

418420
case FWH_STATE_MESSAGE_3_RETRY_WAIT:

0 commit comments

Comments
 (0)