From: Jouni Malinen Date: Thu, 27 Feb 2014 17:26:50 +0000 (+0200) Subject: tests: Verify HS 2.0 connection status values X-Git-Tag: hostap_2_2~726 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10b3cc6791728fda46e3b1564e432f4b51f26929;p=thirdparty%2Fhostap.git tests: Verify HS 2.0 connection status values Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 3ea9edf8b..342ecb55d 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -409,6 +409,11 @@ def test_ap_hs20_username(dev, apdev): interworking_select(dev[0], bssid, "home", freq="2412") interworking_connect(dev[0], bssid, "TTLS") check_sp_type(dev[0], "home") + status = dev[0].get_status() + if status['pairwise_cipher'] != "CCMP": + raise Exception("Unexpected pairwise cipher") + if status['hs20'] != "2": + raise Exception("Unexpected HS 2.0 support indication") dev[1].connect("test-hs20", key_mgmt="WPA-EAP", eap="TTLS", identity="hs20-test", password="password",