From e745c811efb4a1036a2334847a932045c1c86117 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 5 Jan 2014 19:23:29 +0200 Subject: [PATCH] tests: Verify EAP vendor test Signed-hostap: Jouni Malinen --- tests/hwsim/auth_serv/eap_user.conf | 1 + tests/hwsim/test_ap_eap.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf index 5d4beebf7..19bfe6523 100644 --- a/tests/hwsim/auth_serv/eap_user.conf +++ b/tests/hwsim/auth_serv/eap_user.conf @@ -5,6 +5,7 @@ "ikev2 user" IKEV2 "ike password" "pax.user@example.com" PAX 0123456789abcdef0123456789abcdef "psk.user@example.com" PSK 0123456789abcdef0123456789abcdef +"vendor-test" VENDOR-TEST "foo" "0"* AKA "1"* SIM diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 61f5a7896..ea175ac08 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -600,3 +600,10 @@ def test_ap_wpa2_eap_interactive(dev, apdev): if ev is None: raise Exception("Connection timed out") dev[0].request("REMOVE_NETWORK all") + +def test_ap_wpa2_eap_vendor_test(dev, apdev): + """WPA2-Enterprise connection using EAP vendor test""" + params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap") + hostapd.add_ap(apdev[0]['ifname'], params) + eap_connect(dev[0], apdev[0], "VENDOR-TEST", "vendor-test") + eap_reauth(dev[0], "VENDOR-TEST")