]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: hostapd and SET accept_mac_file ctrl_iface command (VLAN ID)
authorJouni Malinen <j@w1.fi>
Tue, 27 Dec 2016 22:25:46 +0000 (00:25 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 28 Dec 2016 12:31:43 +0000 (14:31 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_hapd_ctrl.py

index bfd8689dac55d0503a0a4333d6c2d99c81ea49e0..9915f16d18936494e425b5893319d3e851b9e119 100644 (file)
@@ -264,6 +264,19 @@ def test_hapd_ctrl_set_accept_mac_file(dev, apdev):
     if ev is not None:
         raise Exception("Unexpected disconnection")
 
+def test_hapd_ctrl_set_accept_mac_file_vlan(dev, apdev):
+    """hostapd and SET accept_mac_file ctrl_iface command (VLAN ID)"""
+    ssid = "hapd-ctrl"
+    params = { "ssid": ssid }
+    hapd = hostapd.add_ap(apdev[0], params)
+    dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412")
+    dev[1].connect(ssid, key_mgmt="NONE", scan_freq="2412")
+    hapd.request("SET macaddr_acl 1")
+    if "OK" not in hapd.request("SET accept_mac_file hostapd.accept"):
+        raise Exception("Unexpected SET failure")
+    dev[1].wait_disconnected(timeout=15)
+    dev[0].wait_disconnected(timeout=15)
+
 @remote_compatible
 def test_hapd_ctrl_set_error_cases(dev, apdev):
     """hostapd and SET error cases"""