]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Check for EAP-pwd capability in additional test cases
authorJouni Malinen <j@w1.fi>
Sat, 1 Feb 2025 17:45:55 +0000 (19:45 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 1 Feb 2025 17:50:55 +0000 (19:50 +0200)
These need to be skipped if the devices do not support EAP-pwd (e.g.,
when testing with GnuTLS).

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_fils.py

index 18eff3f01dc881890c230c1c788b7e5bc2e0620e..3214c76ba45d8a8b6f477ed35d758bab75b8b102 100644 (file)
@@ -18,6 +18,7 @@ from tshark import run_tshark
 from wpasupplicant import WpaSupplicant
 import hwsim_utils
 from utils import *
+from test_eap import check_eap_capa
 from test_erp import start_erp_as
 from test_ap_hs20 import ip_checksum
 
@@ -2268,6 +2269,7 @@ def test_fils_sk_erp_radius_ext(dev, apdev, params):
 def run_fils_sk_erp_radius_ext(dev, apdev, params):
     check_fils_capa(dev[0])
     check_erp_capa(dev[0])
+    check_eap_capa(dev[0], "PWD")
 
     bssid = apdev[0]['bssid']
     params = hostapd.wpa2_eap_params(ssid="fils")
@@ -2321,6 +2323,7 @@ def test_fils_sk_erp_radius_roam(dev, apdev):
 def run_fils_sk_erp_radius_roam(dev, apdev):
     check_fils_capa(dev[0])
     check_erp_capa(dev[0])
+    check_eap_capa(dev[0], "PWD")
 
     bssid = apdev[0]['bssid']
     params = hostapd.wpa2_eap_params(ssid="fils")