]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: STA assigned to vif under per_sta_vif
authorMichael Braun <michael-dev@fami-braun.de>
Thu, 21 Jan 2016 13:52:04 +0000 (14:52 +0100)
committerJouni Malinen <j@w1.fi>
Wed, 17 Feb 2016 09:46:13 +0000 (11:46 +0200)
Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
tests/hwsim/test_ap_vlan.py

index 445f44b0380f27a5d0c32987756bf92aa61c3e45..0d2ca00a4d529cc94b09a8194953c01f920c7d2a 100644 (file)
@@ -477,6 +477,27 @@ def test_ap_vlan_without_station(dev, apdev, p):
                         stderr=open('/dev/null', 'w'))
         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):
     """AP VLAN with WPA2-Enterprise and RADIUS EGRESS_VLANID attributes"""
     ifname = 'wlan0.1'