From: Jouni Malinen Date: Wed, 19 Mar 2025 19:21:01 +0000 (+0200) Subject: tests: Allow more time for connection in sae_anti_clogging_during_attack X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=294ab26b9147c38323ba71354a88e0b8be7526f4;p=thirdparty%2Fhostap.git tests: Allow more time for connection in sae_anti_clogging_during_attack This almost-a-busy-loop approach for testing SAE anti-clogging token under an attack is not really robust with UML time-travel. Add a time-based option for continuing the test instead of just fixed limit on the number of loop iterations to make this somewhat more likely to succeed. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index 92b2258ad..0490403bd 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -2048,6 +2048,8 @@ def sae_rx_commit_token_req(sock, radiotap, send_two=False): bssid = frame[12:18] body = frame[20:] + if len(body) < 8: + return False alg, seq, status, group = struct.unpack('