From: Jouni Malinen Date: Mon, 30 Jan 2017 11:21:27 +0000 (+0200) Subject: tests: GAS long comeback delay over default STA timeout X-Git-Tag: hostap_2_7~1698 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d7b2e9018c4ea8d26c119524f2486abc747e7de;p=thirdparty%2Fhostap.git tests: GAS long comeback delay over default STA timeout This verifies that the temporary STA entry timeout limit does not end up breaking comeback_delay tests with values larger than five seconds. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py index ab3471007..2250b7fcb 100644 --- a/tests/hwsim/test_gas.py +++ b/tests/hwsim/test_gas.py @@ -293,6 +293,10 @@ def test_gas_comeback_delay_long(dev, apdev): """GAS long comeback delay""" run_gas_comeback_delay(dev, apdev, 2500) +def test_gas_comeback_delay_long2(dev, apdev): + """GAS long comeback delay over default STA timeout""" + run_gas_comeback_delay(dev, apdev, 6000) + def run_gas_comeback_delay(dev, apdev, delay): hapd = start_ap(apdev[0]) hapd.set("gas_comeback_delay", str(delay)) @@ -302,7 +306,7 @@ def run_gas_comeback_delay(dev, apdev, delay): if "FAIL-BUSY" not in dev[0].request("SCAN"): raise Exception("SCAN accepted during FETCH_ANQP") for i in range(0, 6): - ev = dev[0].wait_event(["RX-ANQP"], timeout=5) + ev = dev[0].wait_event(["RX-ANQP"], timeout=10) if ev is None: raise Exception("Operation timed out")