mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
tests: iftype parameter with GET_CAPABILITY key_mgmt
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
44f7866784
commit
dff67270b5
@ -987,6 +987,16 @@ def test_wpas_ctrl_get_capability(dev):
|
||||
if "WPA-PSK" not in res or "WPA-EAP" not in res:
|
||||
raise Exception("Unexpected GET_CAPABILITY key_mgmt response: " + str(res))
|
||||
|
||||
res = dev[0].get_capability("key_mgmt iftype=STATION")
|
||||
if "WPA-PSK" not in res or "WPA-EAP" not in res:
|
||||
raise Exception("Unexpected GET_CAPABILITY key_mgmt iftype=STATION response: " + str(res))
|
||||
|
||||
iftypes = [ "STATION", "AP_VLAN", "AP", "P2P_GO", "P2P_CLIENT",
|
||||
"P2P_DEVICE", "MESH", "IBSS", "NAN", "UNKNOWN" ]
|
||||
for i in iftypes:
|
||||
res = dev[0].get_capability("key_mgmt iftype=" + i)
|
||||
logger.info("GET_CAPABILITY key_mgmt iftype=%s: %s" % (i, res))
|
||||
|
||||
res = dev[0].get_capability("proto")
|
||||
if "WPA" not in res or "RSN" not in res:
|
||||
raise Exception("Unexpected GET_CAPABILITY proto response: " + str(res))
|
||||
|
Loading…
Reference in New Issue
Block a user