tests: Verify FAIL-BUSY return on SCAN during gas_comeback_delay

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-08-08 20:51:25 +03:00
parent ecafa0cf47
commit 5a145a55a1

View file

@ -257,12 +257,14 @@ def test_gas_fragment(dev, apdev):
raise Exception("Unexpected ANQP result: " + ev)
def test_gas_comeback_delay(dev, apdev):
"""GAS fragmentation"""
"""GAS comeback delay"""
hapd = start_ap(apdev[0])
hapd.set("gas_comeback_delay", "500")
dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412", force_scan=True)
dev[0].request("FETCH_ANQP")
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)
if ev is None: