From: Jouni Malinen Date: Sun, 14 Dec 2014 14:50:05 +0000 (+0200) Subject: tests: SAE with missing password X-Git-Tag: hostap_2_4~781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acb63c753bd4f4d04a6810a3624f4f3baac92a2c;p=thirdparty%2Fhostap.git tests: SAE with missing password Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index c57bb0643..f1e8e12b6 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -152,3 +152,18 @@ def test_sae_mixed(dev, apdev): dev[i].request("SET sae_groups ") dev[i].connect("test-sae", psk="12345678", key_mgmt="SAE", scan_freq="2412") + +def test_sae_missing_password(dev, apdev): + """SAE and missing password""" + params = hostapd.wpa2_params(ssid="test-sae", + passphrase="12345678") + params['wpa_key_mgmt'] = 'SAE' + hapd = hostapd.add_ap(apdev[0]['ifname'], params) + + dev[0].request("SET sae_groups ") + id = dev[0].connect("test-sae", + raw_psk="46b4a73b8a951ad53ebd2e0afdb9c5483257edd4c21d12b7710759da70945858", + key_mgmt="SAE", scan_freq="2412", wait_connect=False) + ev = dev[0].wait_event(['CTRL-EVENT-SSID-TEMP-DISABLED'], timeout=10) + if ev is None: + raise Exception("Invalid network not temporarily disabled")