tests: hostapd and SET accept_mac_file ctrl_iface command (VLAN ID)
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ee734e9aab
commit
2baa15309b
1 changed files with 13 additions and 0 deletions
|
@ -264,6 +264,19 @@ def test_hapd_ctrl_set_accept_mac_file(dev, apdev):
|
||||||
if ev is not None:
|
if ev is not None:
|
||||||
raise Exception("Unexpected disconnection")
|
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
|
@remote_compatible
|
||||||
def test_hapd_ctrl_set_error_cases(dev, apdev):
|
def test_hapd_ctrl_set_error_cases(dev, apdev):
|
||||||
"""hostapd and SET error cases"""
|
"""hostapd and SET error cases"""
|
||||||
|
|
Loading…
Reference in a new issue