]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Check P2P_VALIDATE_DIRA result against FAIL
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 6 Mar 2025 21:50:52 +0000 (23:50 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 6 Mar 2025 21:52:05 +0000 (23:52 +0200)
This is in preparation for a change to the return value in the success
case to return the DevIK identifier instead of just OK.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_p2p2.py

index 582330443443b605209a83ecb995f65cf8ed9b47..e48f08004a90278af05446219790038bdb989201 100644 (file)
@@ -572,7 +572,7 @@ def test_p2p_pairing_verification(dev, apdev):
 
     cmd = "P2P_VALIDATE_DIRA " + addr + " nonce=" + nonce + " tag=" + tag
     res = wpas.group_request(cmd)
-    if "OK" not in res:
+    if "FAIL" in res:
         raise Exception("DIRA validation failed")
 
     dev[1].remove_group()