tests: STA assigned to vif under per_sta_vif
Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
This commit is contained in:
parent
a8c235ee62
commit
571e690775
1 changed files with 21 additions and 0 deletions
|
@ -477,6 +477,27 @@ def test_ap_vlan_without_station(dev, apdev, p):
|
||||||
stderr=open('/dev/null', 'w'))
|
stderr=open('/dev/null', 'w'))
|
||||||
subprocess.call(['brctl', 'delbr', 'brvlan1'])
|
subprocess.call(['brctl', 'delbr', 'brvlan1'])
|
||||||
|
|
||||||
|
def test_ap_open_per_sta_vif(dev, apdev):
|
||||||
|
"""AP VLAN with open network"""
|
||||||
|
params = { "ssid": "test-vlan-open",
|
||||||
|
"per_sta_vif": "1" }
|
||||||
|
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
|
|
||||||
|
dev[0].connect("test-vlan-open", key_mgmt="NONE", scan_freq="2412")
|
||||||
|
hwsim_utils.test_connectivity_iface(dev[0], hapd,
|
||||||
|
apdev[0]['ifname'] + ".4096")
|
||||||
|
|
||||||
|
def test_ap_vlan_open_per_sta_vif(dev, apdev):
|
||||||
|
"""AP VLAN (dynamic) with open network"""
|
||||||
|
params = { "ssid": "test-vlan-open",
|
||||||
|
"per_sta_vif": "1",
|
||||||
|
"dynamic_vlan": "1" }
|
||||||
|
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
|
|
||||||
|
dev[0].connect("test-vlan-open", key_mgmt="NONE", scan_freq="2412")
|
||||||
|
hwsim_utils.test_connectivity_iface(dev[0], hapd,
|
||||||
|
apdev[0]['ifname'] + ".4096")
|
||||||
|
|
||||||
def test_ap_vlan_wpa2_radius_tagged(dev, apdev):
|
def test_ap_vlan_wpa2_radius_tagged(dev, apdev):
|
||||||
"""AP VLAN with WPA2-Enterprise and RADIUS EGRESS_VLANID attributes"""
|
"""AP VLAN with WPA2-Enterprise and RADIUS EGRESS_VLANID attributes"""
|
||||||
ifname = 'wlan0.1'
|
ifname = 'wlan0.1'
|
||||||
|
|
Loading…
Reference in a new issue