From: Michael Braun Date: Thu, 21 Jan 2016 13:52:03 +0000 (+0100) Subject: tests: Verify ap_vlan_iface_cleanup_multibss with per_sta_vif X-Git-Tag: hostap_2_6~894 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c235ee62038f09f490ccf8b739df6abbe7e85f;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/multi-bss-iface-per_sta_vif.conf b/tests/hwsim/multi-bss-iface-per_sta_vif.conf new file mode 100644 index 000000000..f07c13b21 --- /dev/null +++ b/tests/hwsim/multi-bss-iface-per_sta_vif.conf @@ -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 diff --git a/tests/hwsim/test_ap_vlan.py b/tests/hwsim/test_ap_vlan.py index bb601e3c9..445f44b03 100644 --- a/tests/hwsim/test_ap_vlan.py +++ b/tests/hwsim/test_ap_vlan.py @@ -244,7 +244,9 @@ def ap_vlan_iface_test_and_prepare_environ(): def test_ap_vlan_iface_cleanup_multibss(dev, apdev): """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 # check that multiple bss do not interfere with each other with respect # to deletion of bridge and tagged interface. @@ -271,7 +273,7 @@ def test_ap_vlan_iface_cleanup_multibss(dev, apdev): ifname = apdev[0]['ifname'] # start the actual test - hostapd.add_iface(ifname, 'multi-bss-iface.conf') + hostapd.add_iface(ifname, cfgfile) hapd = hostapd.Hostapd(ifname) hapd1 = hostapd.Hostapd("wlan3-2", 1) hapd1.enable() @@ -385,6 +387,15 @@ def test_ap_vlan_iface_cleanup_multibss(dev, apdev): finally: 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): """AP VLAN with WPA2-PSK and no station""" try: