aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-07-23 10:31:50 (GMT)
committerJouni Malinen <j@w1.fi>2019-07-23 10:31:50 (GMT)
commit036fc6bdbdc854f724a8651093d4a7678821dfa1 (patch)
tree2ed29f106e084084a48834a442f260e1fa706047
parent226da33d751ad068c0d9cdc8a9f5538d49a9a798 (diff)
downloadhostap-master.zip
hostap-master.tar.gz
hostap-master.tar.bz2
tests: Disabled EAP-pwd groupHEADpendingmaster
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--tests/hwsim/test_ap_eap.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py
index c64f830..7ff4868 100644
--- a/tests/hwsim/test_ap_eap.py
+++ b/tests/hwsim/test_ap_eap.py
@@ -2840,6 +2840,35 @@ def test_ap_wpa2_eap_pwd_invalid_group(dev, apdev):
dev[0].dump_monitor()
hapd.disable()
+def test_ap_wpa2_eap_pwd_disabled_group(dev, apdev):
+ """WPA2-Enterprise connection using disabled EAP-pwd group"""
+ check_eap_capa(dev[0], "PWD")
+ params = {"ssid": "test-wpa2-eap", "wpa": "2", "wpa_key_mgmt": "WPA-EAP",
+ "rsn_pairwise": "CCMP", "ieee8021x": "1",
+ "eap_server": "1", "eap_user_file": "auth_serv/eap_user.conf"}
+ for i in [19, 21]:
+ logger.info("Group %d" % i)
+ params['pwd_group'] = str(i)
+ hapd = hostapd.add_ap(apdev[0], params)
+ dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP", eap="PWD",
+ identity="pwd user", password="secret password",
+ phase1="eap_pwd_groups=20",
+ scan_freq="2412", wait_connect=False)
+ ev = dev[0].wait_event(["CTRL-EVENT-EAP-FAILURE"])
+ if ev is None:
+ raise Exception("Timeout on EAP failure report (group %d)" % i)
+ dev[0].request("REMOVE_NETWORK all")
+ dev[0].wait_disconnected()
+ dev[0].dump_monitor()
+ hapd.disable()
+
+ params['pwd_group'] = "20"
+ hapd = hostapd.add_ap(apdev[0], params)
+ dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP", eap="PWD",
+ identity="pwd user", password="secret password",
+ phase1="eap_pwd_groups=20",
+ scan_freq="2412")
+
def test_ap_wpa2_eap_pwd_as_frag(dev, apdev):
"""WPA2-Enterprise connection using EAP-pwd with server fragmentation"""
check_eap_capa(dev[0], "PWD")