mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-07 04:34:04 -05:00
tests: Additional GET_CAPABILITY coverage
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
80cb463463
commit
a5c43328d9
@ -759,6 +759,8 @@ def test_wpas_ctrl_get_capability(dev):
|
|||||||
"""wpa_supplicant ctrl_iface GET_CAPABILITY"""
|
"""wpa_supplicant ctrl_iface GET_CAPABILITY"""
|
||||||
if "FAIL" not in dev[0].request("GET_CAPABILITY 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"):
|
if "FAIL" not in dev[0].request("GET_CAPABILITY 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"):
|
||||||
raise Exception("Unexpected success on invalid GET_CAPABILITY")
|
raise Exception("Unexpected success on invalid GET_CAPABILITY")
|
||||||
|
if "FAIL" not in dev[0].request("GET_CAPABILITY eap foo"):
|
||||||
|
raise Exception("Unexpected success on invalid GET_CAPABILITY")
|
||||||
if "AP" not in dev[0].request("GET_CAPABILITY modes strict"):
|
if "AP" not in dev[0].request("GET_CAPABILITY modes strict"):
|
||||||
raise Exception("Unexpected GET_CAPABILITY response")
|
raise Exception("Unexpected GET_CAPABILITY response")
|
||||||
res = dev[0].get_capability("eap")
|
res = dev[0].get_capability("eap")
|
||||||
@ -801,6 +803,10 @@ def test_wpas_ctrl_get_capability(dev):
|
|||||||
if "EXTERNAL" not in res[0]:
|
if "EXTERNAL" not in res[0]:
|
||||||
raise Exception("Unexpected GET_CAPABILITY tdls response: " + str(res))
|
raise Exception("Unexpected GET_CAPABILITY tdls response: " + str(res))
|
||||||
|
|
||||||
|
res = dev[0].get_capability("erp")
|
||||||
|
if "ERP" not in res[0]:
|
||||||
|
raise Exception("Unexpected GET_CAPABILITY erp response: " + str(res))
|
||||||
|
|
||||||
if dev[0].get_capability("foo") is not None:
|
if dev[0].get_capability("foo") is not None:
|
||||||
raise Exception("Unexpected GET_CAPABILITY foo response: " + str(res))
|
raise Exception("Unexpected GET_CAPABILITY foo response: " + str(res))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user