]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Skip test cases that need FILS if CONFIG_FILS=y was not used
authorJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 21:48:38 +0000 (23:48 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 21:48:38 +0000 (23:48 +0200)
fils_offload_to_driver2 and wpas_config_file_key_mgmt require
CONFIG_FILS=y, but they did not use check_fils_capa().

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

index cb687578e4bbdc9f6d532d8dbb90e9073b676926..2e4e0986ebf489d5df6a01e87d757727dbe2f70c 100644 (file)
@@ -2472,6 +2472,7 @@ def test_fils_offload_to_driver(dev, apdev, params):
 
 def test_fils_offload_to_driver2(dev, apdev, params):
     """FILS offload to driver"""
+    check_fils_capa(dev[0])
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
     wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
     run_fils_offload_to_driver(wpas, apdev, params)
index a6b12e5fc4a0c3a316c7f6efca065b68823617bf..601517c7bf8f2bd7da584e45309c59602a59d6e8 100644 (file)
@@ -551,6 +551,7 @@ def test_wpas_config_file_set_global(dev):
 
 def test_wpas_config_file_key_mgmt(dev, apdev, params):
     """wpa_supplicant config file writing and key_mgmt values"""
+    check_fils_capa(dev[0])
     config = os.path.join(params['logdir'],
                           'wpas_config_file_key_mgmt.conf')
     if os.path.exists(config):