]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: HS20_ANQP_GET
authorJouni Malinen <j@w1.fi>
Fri, 11 Apr 2014 21:18:07 +0000 (00:18 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 13 Apr 2014 07:26:52 +0000 (10:26 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_gas.py

index 892dfe44a9552f9c22970765ba460780c34fbe84..f5b20d384c31ea96b1b1ff3112e9f00625cde12f 100644 (file)
@@ -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: