]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use a more reasonable age for a scan result in scan_parsing
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 4 Feb 2022 19:24:19 +0000 (21:24 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 4 Feb 2022 19:24:19 +0000 (21:24 +0200)
This test case could fail in some sequences like "sigma_dut_sae
scan_parsing" due to the ignore_old_scan_res parameter accidentally
being left to 1 by the former test case and the simulated scan result
being older than the previous scan trigger. Reduce the age of that scan
entry to make this less likely to happen.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_scan.py

index 24a7903ab217b5cada0b5ae56231b3d2327d6022..d97f74f965c68771247765547157fdba649cae80 100644 (file)
@@ -1395,7 +1395,7 @@ def test_scan_parsing(dev, apdev):
              # Too long SSID
              "bssid=02:ff:00:00:00:01 ie=0033" + 33*'FF',
              # All parameters
-             "flags=ffffffff bssid=02:ff:00:00:00:02 freq=1234 beacon_int=102 caps=1234 qual=10 noise=10 level=10 tsf=1122334455667788 age=123456 est_throughput=100 snr=10 parent_tsf=1122334455667788 tsf_bssid=02:03:04:05:06:07 ie=000474657374 beacon_ie=000474657374",
+             "flags=ffffffff bssid=02:ff:00:00:00:02 freq=1234 beacon_int=102 caps=1234 qual=10 noise=10 level=10 tsf=1122334455667788 age=123 est_throughput=100 snr=10 parent_tsf=1122334455667788 tsf_bssid=02:03:04:05:06:07 ie=000474657374 beacon_ie=000474657374",
              # Beacon IEs truncated
              "bssid=02:ff:00:00:00:03 ie=0000 beacon_ie=0003ffff",
              # Probe Response IEs truncated