]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_hs20_session_info more robust
authorJouni Malinen <j@w1.fi>
Thu, 9 Oct 2014 21:29:46 +0000 (00:29 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 9 Oct 2014 21:37:07 +0000 (00:37 +0300)
It looks like mac80211 scan-while-associated can now take over 10
seconds with the current wireless-regdb rules for world roaming due to
number of additional DFS channel having been enabled for passive
scanning. This resulted in ap_hs20_session_info failing due to the wait
for the scan result event timing out. That is not really a real failure,
so increase the timeout to avoid reporting this incorrectly.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index b060789786eb992db2839cce2d102c12a640de4b..60dd7d31e7148fa5539ff7204cc017faf315892a 100644 (file)
@@ -1682,7 +1682,7 @@ def test_ap_hs20_session_info(dev, apdev):
     ev = dev[0].wait_event(["CTRL-EVENT-SCAN-STARTED"])
     if ev is None:
         raise Exception("Scan not started")
-    ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"])
+    ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"], timeout=30)
     if ev is None:
         raise Exception("Scan not completed")