From: Jouni Malinen Date: Tue, 27 Dec 2016 22:25:46 +0000 (+0200) Subject: tests: hostapd and SET accept_mac_file ctrl_iface command (VLAN ID) X-Git-Tag: hostap_2_7~1894 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2baa15309b55df188524021040973118fd4897f7;p=thirdparty%2Fhostap.git tests: hostapd and SET accept_mac_file ctrl_iface command (VLAN ID) Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_hapd_ctrl.py b/tests/hwsim/test_hapd_ctrl.py index bfd8689da..9915f16d1 100644 --- a/tests/hwsim/test_hapd_ctrl.py +++ b/tests/hwsim/test_hapd_ctrl.py @@ -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"""