From: Jouni Malinen Date: Fri, 17 Apr 2020 15:16:13 +0000 (+0300) Subject: tests: Skip test cases where hostapd does not support TKIP X-Git-Tag: hostap_2_10~1454 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b82d0bd5877c432dae05126067244b80b82e6fb;p=thirdparty%2Fhostap.git tests: Skip test cases where hostapd does not support TKIP Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py index 62b3302be..571757506 100644 --- a/tests/hwsim/hostapd.py +++ b/tests/hwsim/hostapd.py @@ -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):