]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: GAS long comeback delay over default STA timeout
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 30 Jan 2017 11:21:27 +0000 (13:21 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Jan 2017 11:25:48 +0000 (13:25 +0200)
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 <jouni@qca.qualcomm.com>
tests/hwsim/test_gas.py

index ab3471007a3d577ee006ed37765265a37f5576a3..2250b7fcbe02654bd45d682c6f3237a99db8ef32 100644 (file)
@@ -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")