X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tests%2Fhwsim%2Ftest_ieee8021x.py;h=9c5282b9e59ca47318873acbbf77da4eb1d04b82;hb=d1150e56666c362150e158150ca0f253c7a558a1;hp=a6f675391f7d2137976c6c5272e023823c475f6b;hpb=2fd44db70e08564a24f8e8e2008d61b3d1279802;p=mech_eap.git diff --git a/tests/hwsim/test_ieee8021x.py b/tests/hwsim/test_ieee8021x.py index a6f6753..9c5282b 100644 --- a/tests/hwsim/test_ieee8021x.py +++ b/tests/hwsim/test_ieee8021x.py @@ -393,3 +393,21 @@ def test_ieee8021x_auth_awhile(dev, apdev): ev = hapd.wait_event(["CTRL-EVENT-EAP-PROPOSED"], timeout=10) if ev is None: raise Exception("Authentication restart not seen") + +def test_ieee8021x_open_leap(dev, apdev): + """IEEE 802.1X connection with LEAP included in configuration""" + params = hostapd.radius_params() + params["ssid"] = "ieee8021x-open" + params["ieee8021x"] = "1" + hapd = hostapd.add_ap(apdev[0], params) + + dev[1].connect("ieee8021x-open", key_mgmt="IEEE8021X", eapol_flags="0", + eap="LEAP", identity="psk.user@example.com", + password_hex="0123456789abcdef0123456789abcdef", + scan_freq="2412", wait_connect=False) + dev[0].connect("ieee8021x-open", key_mgmt="IEEE8021X", eapol_flags="0", + eap="PSK LEAP", identity="psk.user@example.com", + password_hex="0123456789abcdef0123456789abcdef", + scan_freq="2412") + ev = dev[1].wait_event(["CTRL-EVENT-AUTH-REJECT"], timeout=5) + dev[1].request("DISCONNECT")