From f80d7757faa6bc8873d5bd77dfa924651d126516 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 4 Feb 2022 21:24:19 +0200 Subject: [PATCH] tests: Use a more reasonable age for a scan result in scan_parsing 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 --- tests/hwsim/test_scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py index 24a7903ab..d97f74f96 100644 --- a/tests/hwsim/test_scan.py +++ b/tests/hwsim/test_scan.py @@ -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