From: Jouni Malinen Date: Tue, 29 Oct 2013 11:57:33 +0000 (+0200) Subject: tests: Verify that STATUS sp_type is valid for Interworking X-Git-Tag: hostap_2_1~747 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4defd91cd37eff7d59eac1ae889cea72cd38295;p=thirdparty%2Fhostap.git tests: Verify that STATUS sp_type is valid for Interworking 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 --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 16be9ece5..78d594f5e 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -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")