tests: Verify ap_vlan_iface_cleanup_multibss with per_sta_vif

This adds a new test case to run ap_vlan_iface_cleanup_multibss with
per_sta_vif enabled.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
This commit is contained in:
Michael Braun 2016-01-21 14:52:03 +01:00 committed by Jouni Malinen
parent 629d369674
commit a8c235ee62
2 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,42 @@
driver=nl80211
hw_mode=g
channel=1
ieee80211n=1
interface=wlan3
ctrl_interface=/var/run/hostapd
ssid=bss-1
dynamic_vlan=1
vlan_tagged_interface=dummy0
vlan_bridge=brvlan
wpa=2
wpa_key_mgmt=WPA-EAP
rsn_pairwise=CCMP
ieee8021x=1
auth_server_addr=127.0.0.1
auth_server_port=18128
auth_server_shared_secret=radius
nas_identifier=nas.w1.fi
vlan_naming=1
per_sta_vif=1
bss=wlan3-2
bssid=02:00:00:00:03:01
ctrl_interface=/var/run/hostapd
ssid=bss-2
dynamic_vlan=1
vlan_tagged_interface=dummy0
vlan_bridge=brvlan
wpa=2
wpa_key_mgmt=WPA-EAP
rsn_pairwise=CCMP
ieee8021x=1
auth_server_addr=127.0.0.1
auth_server_port=18128
auth_server_shared_secret=radius
nas_identifier=nas.w1.fi
vlan_naming=1
per_sta_vif=1

View File

@ -244,7 +244,9 @@ def ap_vlan_iface_test_and_prepare_environ():
def test_ap_vlan_iface_cleanup_multibss(dev, apdev): def test_ap_vlan_iface_cleanup_multibss(dev, apdev):
"""AP VLAN operation in multi-BSS multi-VLAN case""" """AP VLAN operation in multi-BSS multi-VLAN case"""
ap_vlan_iface_cleanup_multibss(dev, apdev, 'multi-bss-iface.conf')
def ap_vlan_iface_cleanup_multibss(dev, apdev, cfgfile):
# AP VLAN with WPA2-Enterprise and RADIUS attributes changing VLANID # AP VLAN with WPA2-Enterprise and RADIUS attributes changing VLANID
# check that multiple bss do not interfere with each other with respect # check that multiple bss do not interfere with each other with respect
# to deletion of bridge and tagged interface. # to deletion of bridge and tagged interface.
@ -271,7 +273,7 @@ def test_ap_vlan_iface_cleanup_multibss(dev, apdev):
ifname = apdev[0]['ifname'] ifname = apdev[0]['ifname']
# start the actual test # start the actual test
hostapd.add_iface(ifname, 'multi-bss-iface.conf') hostapd.add_iface(ifname, cfgfile)
hapd = hostapd.Hostapd(ifname) hapd = hostapd.Hostapd(ifname)
hapd1 = hostapd.Hostapd("wlan3-2", 1) hapd1 = hostapd.Hostapd("wlan3-2", 1)
hapd1.enable() hapd1.enable()
@ -385,6 +387,15 @@ def test_ap_vlan_iface_cleanup_multibss(dev, apdev):
finally: finally:
ap_vlan_iface_cleanup_multibss_cleanup() ap_vlan_iface_cleanup_multibss_cleanup()
def test_ap_vlan_iface_cleanup_multibss_per_sta_vif(dev, apdev):
"""AP VLAN operation in multi-BSS multi-VLAN case with per-sta-vif set"""
# AP VLAN with WPA2-Enterprise and RADIUS attributes changing VLANID
# check that multiple bss do not interfere with each other with respect
# to deletion of bridge and tagged interface. per_sta_vif is enabled.
ap_vlan_iface_cleanup_multibss(dev, apdev,
'multi-bss-iface-per_sta_vif.conf')
def test_ap_vlan_without_station(dev, apdev, p): def test_ap_vlan_without_station(dev, apdev, p):
"""AP VLAN with WPA2-PSK and no station""" """AP VLAN with WPA2-PSK and no station"""
try: try: