[PATCH v2 35/38] tests: Fix failure for WPA-EAP-SUITE-B-192 key_mgmt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The wpas_config_file_key_mgmt fails with this error.

Exception: SET_NETWORK failed
Exception: SET_NETWORK failed

Because WPA-EAP-SUITE-B-192 is not supported by default.

I modified to just skip WPA-EAP-SUITE-B-192 case because I do not want to skip
whole key_mgmt test.

Signed-off-by: Masashi Honma <masashi.honma@xxxxxxxxx>
---
 tests/hwsim/test_wpas_config.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py
index 22f26398c..6274abf1c 100644
--- a/tests/hwsim/test_wpas_config.py
+++ b/tests/hwsim/test_wpas_config.py
@@ -575,7 +575,11 @@ def test_wpas_config_file_key_mgmt(dev, apdev, params):
               "SAE", "FT-SAE", "OSEN", "WPA-EAP-SUITE-B",
               "WPA-EAP-SUITE-B-192", "FILS-SHA256", "FILS-SHA384",
               "FT-FILS-SHA256", "FT-FILS-SHA384", "OWE", "DPP" ]
+    supported_key_mgmts = dev[0].get_capability("key_mgmt")
     for key_mgmt in tests:
+        if key_mgmt == "WPA-EAP-SUITE-B-192" and not key_mgmt in supported_key_mgmts:
+            logger.info("Skip unsupported " + key_mgmt)
+            continue
         wpas.set_network(id, "key_mgmt", key_mgmt)
         if "OK" not in wpas.request("SAVE_CONFIG"):
             raise Exception("Failed to save configuration file")
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux