aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-01-23 04:55:31 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-23 05:02:30 (GMT)
commit1d2e6a451a109dc7ae33acf2db755aab71e4a287 (patch)
tree87271dccb2db91f8214db9cfea8082114ed818c9 /tests
parent53b38209f46f177faa87324c086f50a6d7689460 (diff)
downloadhostap-1d2e6a451a109dc7ae33acf2db755aab71e4a287.zip
hostap-1d2e6a451a109dc7ae33acf2db755aab71e4a287.tar.gz
hostap-1d2e6a451a109dc7ae33acf2db755aab71e4a287.tar.bz2
tests: GAS comeback delay that is longer than query timeout
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_gas.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py
index 620c447..ab34710 100644
--- a/tests/hwsim/test_gas.py
+++ b/tests/hwsim/test_gas.py
@@ -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")