From: Jouni Malinen Date: Mon, 23 Jan 2017 04:55:31 +0000 (+0200) Subject: tests: GAS comeback delay that is longer than query timeout X-Git-Tag: hostap_2_7~1744 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d2e6a451a109dc7ae33acf2db755aab71e4a287;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py index 620c447f3..ab3471007 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")