aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-01-02 21:50:35 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-02 21:50:35 (GMT)
commitfef133e99cfdf7f55d5ef42cf733c8a05eaacb3d (patch)
tree87dbeb8a5f91f4850926d932a582e16c4f860e83
parentba4f3224ae9e3b8005296123d5672fefbe0d7267 (diff)
downloadhostap-fef133e99cfdf7f55d5ef42cf733c8a05eaacb3d.zip
hostap-fef133e99cfdf7f55d5ef42cf733c8a05eaacb3d.tar.gz
hostap-fef133e99cfdf7f55d5ef42cf733c8a05eaacb3d.tar.bz2
tests: AP VLAN with WPA2-Enterprise and local file setting VLAN IDs
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_vlan.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_vlan.py b/tests/hwsim/test_ap_vlan.py
index 76a53d8..62e1d32 100644
--- a/tests/hwsim/test_ap_vlan.py
+++ b/tests/hwsim/test_ap_vlan.py
@@ -156,6 +156,31 @@ def test_ap_vlan_wpa2_radius_2(dev, apdev):
hwsim_utils.test_connectivity_iface(dev[0], hapd, "brvlan1")
+def test_ap_vlan_wpa2_radius_local(dev, apdev):
+ """AP VLAN with WPA2-Enterprise and local file setting VLAN IDs"""
+ params = hostapd.wpa2_eap_params(ssid="test-vlan")
+ params['dynamic_vlan'] = "0"
+ params['vlan_file'] = "hostapd.vlan"
+ params['vlan_bridge'] = "test_br_vlan"
+ params['accept_mac_file'] = "hostapd.accept"
+ hapd = hostapd.add_ap(apdev[0], params)
+
+ dev[0].connect("test-vlan", key_mgmt="WPA-EAP", eap="PAX",
+ identity="pax.user@example.com",
+ password_hex="0123456789abcdef0123456789abcdef",
+ scan_freq="2412")
+ dev[1].connect("test-vlan", key_mgmt="WPA-EAP", eap="PAX",
+ identity="pax.user@example.com",
+ password_hex="0123456789abcdef0123456789abcdef",
+ scan_freq="2412")
+ dev[2].connect("test-vlan", key_mgmt="WPA-EAP", eap="PAX",
+ identity="pax.user@example.com",
+ password_hex="0123456789abcdef0123456789abcdef",
+ scan_freq="2412")
+ hwsim_utils.test_connectivity_iface(dev[0], hapd, "test_br_vlan1")
+ hwsim_utils.test_connectivity_iface(dev[1], hapd, "test_br_vlan2")
+ hwsim_utils.test_connectivity(dev[2], hapd)
+
def test_ap_vlan_wpa2_radius_id_change(dev, apdev):
"""AP VLAN with WPA2-Enterprise and RADIUS attributes changing VLANID"""
generic_ap_vlan_wpa2_radius_id_change(dev, apdev, False)