]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update P2P2 pairing verification test to validate DIRA
authorVinay Gannevaram <quic_vganneva@quicinc.com>
Fri, 24 Jan 2025 13:01:56 +0000 (18:31 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 24 Jan 2025 21:00:11 +0000 (23:00 +0200)
Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
tests/hwsim/test_p2p2.py

index 68bd1406dccca4cc5eed298c8fa99770e8e3e030..1d6c68f87a14319d1c4447c95927ae764a94153c 100644 (file)
@@ -561,6 +561,14 @@ def test_p2p_pairing_verification(dev, apdev):
         raise Exception("Failed to complete group start on reinvocation")
     wpas.dump_monitor()
 
+    res = dev[1].group_request("P2P_GET_DIRA")
+    addr, nonce, tag = res.split()
+
+    cmd = "P2P_VALIDATE_DIRA " + addr + " nonce=" + nonce + " tag=" + tag
+    res = wpas.group_request(cmd)
+    if "OK" not in res:
+        raise Exception("DIRA validation failed")
+
     dev[1].remove_group()
     wpas.wait_go_ending_session()
     wpas.dump_monitor()