From: Vinay Gannevaram Date: Thu, 20 Feb 2025 10:43:26 +0000 (+0530) Subject: tests: Add capability checks to P2P2 test cases X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ddc499816ec9bf7146d30a29238dd37e8ba00db;p=thirdparty%2Fhostap.git tests: Add capability checks to P2P2 test cases Signed-off-by: Vinay Gannevaram --- diff --git a/tests/hwsim/test_p2p2.py b/tests/hwsim/test_p2p2.py index 17315cbe8..582330443 100644 --- a/tests/hwsim/test_p2p2.py +++ b/tests/hwsim/test_p2p2.py @@ -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")