tests: VLAN using vlan_file mapping
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
14a7fb1f11
commit
fd6b727ed4
2 changed files with 17 additions and 0 deletions
2
tests/hwsim/hostapd.vlan
Normal file
2
tests/hwsim/hostapd.vlan
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 hwsimvlan1
|
||||
* testvlan#
|
|
@ -28,6 +28,21 @@ def test_ap_vlan_open(dev, apdev):
|
|||
hwsim_utils.test_connectivity(dev[1].ifname, "brvlan2")
|
||||
hwsim_utils.test_connectivity(dev[2].ifname, apdev[0]['ifname'])
|
||||
|
||||
def test_ap_vlan_file_open(dev, apdev):
|
||||
"""AP VLAN with open network and vlan_file mapping"""
|
||||
params = { "ssid": "test-vlan-open",
|
||||
"dynamic_vlan": "1",
|
||||
"vlan_file": "hostapd.vlan",
|
||||
"accept_mac_file": "hostapd.accept" }
|
||||
hostapd.add_ap(apdev[0]['ifname'], 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(dev[0].ifname, "brvlan1")
|
||||
hwsim_utils.test_connectivity(dev[1].ifname, "brvlan2")
|
||||
hwsim_utils.test_connectivity(dev[2].ifname, apdev[0]['ifname'])
|
||||
|
||||
def test_ap_vlan_wpa2(dev, apdev):
|
||||
"""AP VLAN with WPA2-PSK"""
|
||||
params = hostapd.wpa2_params(ssid="test-vlan",
|
||||
|
|
Loading…
Reference in a new issue