tests: hostapd global control interface with unknown IFNAME= prefix
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ea173088c7
commit
ee734e9aab
1 changed files with 3 additions and 0 deletions
|
@ -476,6 +476,9 @@ def test_hapd_ctrl_global(dev, apdev):
|
|||
res = hapd_global.request("IFNAME=" + ifname + " GET version")
|
||||
if "FAIL" in res:
|
||||
raise Exception("Could not get hostapd version for " + ifname + " via global control interface")
|
||||
res = hapd_global.request("IFNAME=no-such-ifname GET version")
|
||||
if "FAIL-NO-IFNAME-MATCH" not in res:
|
||||
raise Exception("Invalid ifname not reported")
|
||||
res = hapd_global.request("INTERFACES")
|
||||
if "FAIL" in res:
|
||||
raise Exception("INTERFACES command failed")
|
||||
|
|
Loading…
Reference in a new issue