From 0d7b2e9018c4ea8d26c119524f2486abc747e7de Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 30 Jan 2017 13:21:27 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_gas.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")