]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Update replay counter from roam info
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Thu, 17 Aug 2017 08:28:06 +0000 (13:58 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 17 Oct 2017 13:26:44 +0000 (16:26 +0300)
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>
wpa_supplicant/events.c

index 94b3fd9e0bb0619c04358388ed314ffa90714bfd..79df9b38ad648fc258e51fc92ebd10a1f677957c 100644 (file)
@@ -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 */
 }