]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix rare EAPOL frame ID wrap-around failure
authorBenjamin Berg <benjamin.berg@intel.com>
Fri, 27 Sep 2024 09:36:22 +0000 (11:36 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 19 Dec 2024 21:55:39 +0000 (23:55 +0200)
In rare cases ieee8021x_set_conf would fail as the ID of the EAPOL frame
wrapped around and the frame was not ignored as expected.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
tests/hwsim/test_ieee8021x.py

index db0b6957653e248780fe0395f370d4cfc6c3b7d0..7453aecba6b7001f9dbcaddace0d7beea005d8c9 100644 (file)
@@ -440,7 +440,10 @@ def test_ieee8021x_set_conf(dev, apdev):
     dev[0].connect("ieee8021x-open", key_mgmt="IEEE8021X", eapol_flags="0",
                    eap="PSK", identity="psk.user@example.com",
                    password_hex="0123456789abcdef0123456789abcdef",
-                   scan_freq="2412")
+                   scan_freq="2412",
+                   # The workaround in eap_success_workaround can trigger a
+                   # rare failure when the EAPOL frame ID wraps.
+                   eap_workaround="0")
 
     addr0 = dev[0].own_addr()
     tests = ["EAPOL_SET 1",