mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
tests: More hostapd SET command coverage
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a58bb54f7d
commit
b6b6858df1
@ -713,3 +713,16 @@ def test_hapd_ctrl_not_yet_fully_enabled(dev, apdev):
|
|||||||
"STOP_AP" ]
|
"STOP_AP" ]
|
||||||
for cmd in cmds:
|
for cmd in cmds:
|
||||||
hapd.request(cmd)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user