aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-21 09:58:51 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-21 10:02:57 (GMT)
commitafd38c9fdc045d827f2f16304daacfe13082e254 (patch)
tree10e565e65bdf7bbded2d8b789d7627f8c8bef478 /tests
parent4d663233e64f639998aab31195ab7c819164019c (diff)
downloadhostap-afd38c9fdc045d827f2f16304daacfe13082e254.zip
hostap-afd38c9fdc045d827f2f16304daacfe13082e254.tar.gz
hostap-afd38c9fdc045d827f2f16304daacfe13082e254.tar.bz2
tests: hostapd.vlan with bridge ifname
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/hostapd.accept23
-rw-r--r--tests/hwsim/hostapd.vlan23
-rw-r--r--tests/hwsim/test_ap_vlan.py15
3 files changed, 21 insertions, 0 deletions
diff --git a/tests/hwsim/hostapd.accept2 b/tests/hwsim/hostapd.accept2
new file mode 100644
index 0000000..3d41e34
--- /dev/null
+++ b/tests/hwsim/hostapd.accept2
@@ -0,0 +1,3 @@
+02:00:00:00:00:00 1
+02:00:00:00:01:00 2
+02:00:00:00:02:00 3
diff --git a/tests/hwsim/hostapd.vlan2 b/tests/hwsim/hostapd.vlan2
new file mode 100644
index 0000000..46bf628
--- /dev/null
+++ b/tests/hwsim/hostapd.vlan2
@@ -0,0 +1,3 @@
+1 hwsimvlan1
+3 hwsimvlan3 hwsimbr3
+* testvlan#
diff --git a/tests/hwsim/test_ap_vlan.py b/tests/hwsim/test_ap_vlan.py
index e3b8eb6..76a53d8 100644
--- a/tests/hwsim/test_ap_vlan.py
+++ b/tests/hwsim/test_ap_vlan.py
@@ -53,6 +53,21 @@ def test_ap_vlan_file_open(dev, apdev):
hwsim_utils.test_connectivity_iface(dev[1], hapd, "brvlan2")
hwsim_utils.test_connectivity(dev[2], hapd)
+def test_ap_vlan_file_open2(dev, apdev):
+ """AP VLAN with open network and vlan_file mapping (2)"""
+ params = { "ssid": "test-vlan-open",
+ "dynamic_vlan": "1",
+ "vlan_file": "hostapd.vlan2",
+ "accept_mac_file": "hostapd.accept2" }
+ hapd = hostapd.add_ap(apdev[0], params)
+
+ dev[0].connect("test-vlan-open", key_mgmt="NONE", scan_freq="2412")
+ dev[1].connect("test-vlan-open", key_mgmt="NONE", scan_freq="2412")
+ dev[2].connect("test-vlan-open", key_mgmt="NONE", scan_freq="2412")
+ hwsim_utils.test_connectivity_iface(dev[0], hapd, "brvlan1")
+ hwsim_utils.test_connectivity_iface(dev[1], hapd, "brvlan2")
+ hwsim_utils.test_connectivity_iface(dev[2], hapd, "hwsimbr3")
+
def test_ap_vlan_file_parsing(dev, apdev, params):
"""hostapd vlan_file/mac_file parsing"""
tmp = os.path.join(params['logdir'], 'ap_vlan_file_parsing.tmp')