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>
This commit is contained in:
Jouni Malinen 2017-01-23 06:55:31 +02:00 committed by Jouni Malinen
parent 53b38209f4
commit 1d2e6a451a

View 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")