]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add capability checks to P2P2 test cases
authorVinay Gannevaram <quic_vganneva@quicinc.com>
Thu, 20 Feb 2025 10:43:26 +0000 (16:13 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 6 Mar 2025 21:42:25 +0000 (23:42 +0200)
Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
tests/hwsim/test_p2p2.py

index 17315cbe8bc7af2e5ed007d3b16e16af9440702d..582330443443b605209a83ecb995f65cf8ed9b47 100644 (file)
@@ -21,6 +21,12 @@ from test_pasn import check_pasn_capab
 def check_p2p2_capab(dev):
     check_nan_usd_capab(dev)
     check_pasn_capab(dev)
+    res = dev.request("GET_CAPABILITY p2p2")
+    if res is None or "not supported" in res:
+        raise HwsimSkip("P2P2 not supported")
+    res = dev.request("GET_CAPABILITY pcc_mode")
+    if res is None or "not supported" in res:
+        raise HwsimSkip("PCC mode not supported")
 
 def set_p2p2_configs(dev):
     dev.global_request("P2P_SET pasn_type 3")