]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Report missing erp support more nicely in wpas_ctrl_get_capability
authorJouni Malinen <j@w1.fi>
Thu, 25 Dec 2014 13:51:49 +0000 (15:51 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 13:49:05 +0000 (15:49 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index 63307582f9c6f25a5094cadee493e54a744c4175..dbb2e8db2e5da4182dcaac85b273b0f3ebdd2266 100644 (file)
@@ -800,7 +800,7 @@ def test_wpas_ctrl_get_capability(dev):
         raise Exception("Unexpected GET_CAPABILITY tdls response: " + str(res))
 
     res = dev[0].get_capability("erp")
-    if "ERP" not in res[0]:
+    if res is None or "ERP" not in res[0]:
         raise Exception("Unexpected GET_CAPABILITY erp response: " + str(res))
 
     if dev[0].get_capability("foo") is not None: