]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify that STATUS sp_type is valid for Interworking
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 29 Oct 2013 11:57:33 +0000 (13:57 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 29 Oct 2013 12:12:23 +0000 (14:12 +0200)
This verifies that the network type (home/roaming/unknown) is available
and set properly in the test_ap_hs20_ext_sim test case.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

tests/hwsim/test_ap_hs20.py

index 16be9ece5f3c2ef950c3b68b2031e9b0557bd2a1..78d594f5e20566275d645d22455cf34542736737 100644 (file)
@@ -167,3 +167,9 @@ def test_ap_hs20_ext_sim(dev, apdev):
     ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
     if ev is None:
         raise Exception("Connection timed out")
+
+    type = dev[0].get_status_field("sp_type")
+    if type is None:
+        raise Exception("sp_type not available")
+    if type != "home":
+        raise Exception("sp_type did not indicate home network")