]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify wpa parameter in hostapd GET_CONFIG
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 17 Jul 2015 21:20:23 +0000 (00:20 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 17 Jul 2015 21:20:23 +0000 (00:20 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_wps.py

index 90c1d7902c481e5fbbcadd8e15a1ae0922a43e78..c82fb7531c0a5963ab22a9fea342e035318bffce 100644 (file)
@@ -66,6 +66,8 @@ def test_ap_wps_init(dev, apdev):
     conf = hapd.request("GET_CONFIG")
     if "wps_state=configured" not in conf:
         raise Exception("AP not in WPS configured state")
+    if "wpa=3" not in conf:
+        raise Exception("AP not in WPA+WPA2 configuration")
     if "rsn_pairwise_cipher=CCMP TKIP" not in conf:
         raise Exception("Unexpected rsn_pairwise_cipher")
     if "wpa_pairwise_cipher=CCMP TKIP" not in conf: