tests: HS20_ANQP_GET
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
56147bc779
commit
6d6f3c0926
1 changed files with 10 additions and 0 deletions
|
@ -253,6 +253,16 @@ def test_gas_anqp_get(dev, apdev):
|
|||
if ev is None or "WAN Metrics" not in ev:
|
||||
raise Exception("Did not receive WAN Metrics")
|
||||
|
||||
dev[0].request("HS20_ANQP_GET " + bssid + " 3,4")
|
||||
|
||||
ev = dev[0].wait_event(["RX-HS20-ANQP"], timeout=1)
|
||||
if ev is None or "Operator Friendly Name" not in ev:
|
||||
raise Exception("Did not receive Operator Friendly Name")
|
||||
|
||||
ev = dev[0].wait_event(["RX-HS20-ANQP"], timeout=1)
|
||||
if ev is None or "WAN Metrics" not in ev:
|
||||
raise Exception("Did not receive WAN Metrics")
|
||||
|
||||
def expect_gas_result(dev, result, status=None):
|
||||
ev = dev.wait_event(["GAS-QUERY-DONE"], timeout=10)
|
||||
if ev is None:
|
||||
|
|
Loading…
Reference in a new issue