aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>2017-08-17 08:28:06 (GMT)
committerJouni Malinen <j@w1.fi>2017-10-17 13:26:44 (GMT)
commitb0a21e228de1fdada46c9996ca65b6af72300b96 (patch)
tree0a5aa70941c6702de351f198fc10fedeaff79411 /wpa_supplicant/events.c
parent693eafb1501c06e806494b391f60f6fa17ae5c01 (diff)
downloadhostap-b0a21e228de1fdada46c9996ca65b6af72300b96.zip
hostap-b0a21e228de1fdada46c9996ca65b6af72300b96.tar.gz
hostap-b0a21e228de1fdada46c9996ca65b6af72300b96.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 94b3fd9..79df9b3 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -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 */
}