tests: Add a GAS comeback delay test case
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8426a1474a
commit
e4a44b3c09
1 changed files with 17 additions and 1 deletions
|
@ -189,7 +189,23 @@ def test_gas_fragment(dev, apdev):
|
||||||
hapd = hostapd.Hostapd(apdev[0]['ifname'])
|
hapd = hostapd.Hostapd(apdev[0]['ifname'])
|
||||||
hapd.set("gas_frag_limit", "50")
|
hapd.set("gas_frag_limit", "50")
|
||||||
|
|
||||||
dev[0].scan()
|
dev[0].scan(freq="2412")
|
||||||
|
dev[0].request("FETCH_ANQP")
|
||||||
|
for i in range(0, 6):
|
||||||
|
ev = dev[0].wait_event(["RX-ANQP"], timeout=5)
|
||||||
|
if ev is None:
|
||||||
|
raise Exception("Operation timed out")
|
||||||
|
|
||||||
|
def test_gas_comeback_delay(dev, apdev):
|
||||||
|
"""GAS fragmentation"""
|
||||||
|
bssid = apdev[0]['bssid']
|
||||||
|
params = hs20_ap_params()
|
||||||
|
params['hessid'] = bssid
|
||||||
|
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
|
hapd = hostapd.Hostapd(apdev[0]['ifname'])
|
||||||
|
hapd.set("gas_comeback_delay", "500")
|
||||||
|
|
||||||
|
dev[0].scan(freq="2412")
|
||||||
dev[0].request("FETCH_ANQP")
|
dev[0].request("FETCH_ANQP")
|
||||||
for i in range(0, 6):
|
for i in range(0, 6):
|
||||||
ev = dev[0].wait_event(["RX-ANQP"], timeout=5)
|
ev = dev[0].wait_event(["RX-ANQP"], timeout=5)
|
||||||
|
|
Loading…
Reference in a new issue