From: Jouni Malinen Date: Sun, 18 Jan 2015 23:11:36 +0000 (+0200) Subject: tests: WPA + WEP configuration getting rejected X-Git-Tag: hostap_2_4~367 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=214457de158611f2584a01ada50f3e6359b0854c;p=thirdparty%2Fhostap.git tests: WPA + WEP configuration getting rejected Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index e8806bf26..2c2209cb5 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -975,3 +975,15 @@ def test_wpa2_psk_key_lifetime_in_memory(dev, apdev, params): verify_not_present(buf, kek, fname, "KEK") verify_not_present(buf, tk, fname, "TK") verify_not_present(buf, gtk, fname, "GTK") + +def test_ap_wpa2_psk_wep(dev, apdev): + """WPA2-PSK AP and WEP enabled""" + ssid = "test-wpa2-psk" + passphrase = 'qwertyuiop' + params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase) + hapd = hostapd.add_ap(apdev[0]['ifname'], params) + try: + hapd.set('wep_key0', '"hello"') + raise Exception("WEP key accepted to WPA2 network") + except Exception: + pass