tests: More hostapd SET command coverage

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-12-27 19:59:03 +02:00
parent a58bb54f7d
commit b6b6858df1

View file

@ -713,3 +713,16 @@ def test_hapd_ctrl_not_yet_fully_enabled(dev, apdev):
"STOP_AP" ]
for cmd in cmds:
hapd.request(cmd)
def test_hapd_ctrl_set(dev, apdev):
"""hostapd and SET ctrl_iface command"""
ssid = "hapd-ctrl"
params = { "ssid": ssid }
hapd = hostapd.add_ap(apdev[0], params)
tests = [ "foo",
"wps_version_number 300",
"gas_frag_limit 0",
"mbo_assoc_disallow 0" ]
for t in tests:
if "FAIL" not in hapd.request("SET " + t):
raise Exception("Invalid SET command accepted: " + t)