tests: GAS/ANQP query without scan
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
170775232d
commit
97e6ead423
1 changed files with 19 additions and 0 deletions
|
@ -487,6 +487,25 @@ def test_gas_anqp_get(dev, apdev):
|
||||||
if "FAIL" not in dev[0].request("HS20_ANQP_GET " + cmd):
|
if "FAIL" not in dev[0].request("HS20_ANQP_GET " + cmd):
|
||||||
raise Exception("Invalid HS20_ANQP_GET accepted")
|
raise Exception("Invalid HS20_ANQP_GET accepted")
|
||||||
|
|
||||||
|
def test_gas_anqp_get_no_scan(dev, apdev):
|
||||||
|
"""GAS/ANQP query without scan"""
|
||||||
|
hapd = start_ap(apdev[0])
|
||||||
|
bssid = apdev[0]['bssid']
|
||||||
|
if "OK" not in dev[0].request("ANQP_GET " + bssid + " freq=2412 258"):
|
||||||
|
raise Exception("ANQP_GET command failed")
|
||||||
|
ev = dev[0].wait_event(["ANQP-QUERY-DONE"], timeout=10)
|
||||||
|
if ev is None:
|
||||||
|
raise Exception("ANQP query timed out")
|
||||||
|
dev[0].dump_monitor()
|
||||||
|
|
||||||
|
if "OK" not in dev[0].request("ANQP_GET 02:11:22:33:44:55 freq=2417 258"):
|
||||||
|
raise Exception("ANQP_GET command failed")
|
||||||
|
ev = dev[0].wait_event(["ANQP-QUERY-DONE"], timeout=10)
|
||||||
|
if ev is None:
|
||||||
|
raise Exception("ANQP query timed out [2]")
|
||||||
|
if "result=FAILURE" not in ev:
|
||||||
|
raise Exception("Unexpected result: " + ev)
|
||||||
|
|
||||||
def test_gas_anqp_get_oom(dev, apdev):
|
def test_gas_anqp_get_oom(dev, apdev):
|
||||||
"""GAS/ANQP query OOM"""
|
"""GAS/ANQP query OOM"""
|
||||||
hapd = start_ap(apdev[0])
|
hapd = start_ap(apdev[0])
|
||||||
|
|
Loading…
Reference in a new issue