]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Skip test cases where hostapd does not support TKIP
authorJouni Malinen <jouni@codeaurora.org>
Fri, 17 Apr 2020 15:16:13 +0000 (18:16 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 17 Apr 2020 20:51:58 +0000 (23:51 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/hostapd.py

index 62b3302beb28377e4864d9ff1740aef242762847..57175750641286792ca6b3bbb9b9d591399ac40f 100644 (file)
@@ -196,6 +196,9 @@ class Hostapd:
 
     def set(self, field, value):
         if "OK" not in self.request("SET " + field + " " + value):
+            if "TKIP" in value and (field == "wpa_pairwise" or \
+                                    field == "rsn_pairwise"):
+                raise utils.HwsimSkip("Cipher TKIP not supported")
             raise Exception("Failed to set hostapd parameter " + field)
 
     def set_defaults(self):