]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: GAS comeback delay that is longer than query timeout
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 23 Jan 2017 04:55:31 +0000 (06:55 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 23 Jan 2017 05:02:30 +0000 (07:02 +0200)
This is a regression test for comeback delay values larger than
GAS_QUERY_TIMEOUT_PERIOD causing timeouts for the query.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_gas.py

index 620c447f36a8cc3dbd8ae440abb0e15c8954c579..ab3471007a3d577ee006ed37765265a37f5576a3 100644 (file)
@@ -287,8 +287,15 @@ def test_gas_fragment_with_comeback_delay_mcc(dev, apdev):
 
 def test_gas_comeback_delay(dev, apdev):
     """GAS comeback delay"""
+    run_gas_comeback_delay(dev, apdev, 500)
+
+def test_gas_comeback_delay_long(dev, apdev):
+    """GAS long comeback delay"""
+    run_gas_comeback_delay(dev, apdev, 2500)
+
+def run_gas_comeback_delay(dev, apdev, delay):
     hapd = start_ap(apdev[0])
-    hapd.set("gas_comeback_delay", "500")
+    hapd.set("gas_comeback_delay", str(delay))
 
     dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412", force_scan=True)
     dev[0].request("FETCH_ANQP")