mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-20 02:53:03 -05:00
FILS: Update replay counter from roam info
Update the replay counter after a roam for all cases. This restores the design back to what it was before commit 01ef320f192daa074c7055a44a03b6b5b811d6bd ('FILS: Update ERP next sequence number with driver offload'). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
693eafb150
commit
b0a21e228d
@ -3755,6 +3755,7 @@ static void wpa_supplicant_event_assoc_auth(struct wpa_supplicant *wpa_s,
|
||||
eapol_sm_notify_portValid(wpa_s->eapol, TRUE);
|
||||
eapol_sm_notify_eap_success(wpa_s->eapol, TRUE);
|
||||
}
|
||||
wpa_sm_set_rx_replay_ctr(wpa_s->wpa, data->assoc_info.key_replay_ctr);
|
||||
wpa_sm_set_ptk_kck_kek(wpa_s->wpa, data->assoc_info.ptk_kck,
|
||||
data->assoc_info.ptk_kck_len,
|
||||
data->assoc_info.ptk_kek,
|
||||
@ -3781,12 +3782,7 @@ static void wpa_supplicant_event_assoc_auth(struct wpa_supplicant *wpa_s,
|
||||
data->assoc_info.fils_pmkid,
|
||||
NULL, NULL, 0, NULL);
|
||||
}
|
||||
} else {
|
||||
wpa_sm_set_rx_replay_ctr(wpa_s->wpa,
|
||||
data->assoc_info.key_replay_ctr);
|
||||
}
|
||||
#else /* CONFIG_FILS */
|
||||
wpa_sm_set_rx_replay_ctr(wpa_s->wpa, data->assoc_info.key_replay_ctr);
|
||||
#endif /* CONFIG_FILS */
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user