tests: Skip test cases where hostapd does not support TKIP

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-04-17 18:16:13 +03:00 committed by Jouni Malinen
parent 21cf2c5baf
commit 7b82d0bd58

View file

@ -196,6 +196,9 @@ class Hostapd:
def set(self, field, value): def set(self, field, value):
if "OK" not in self.request("SET " + 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) raise Exception("Failed to set hostapd parameter " + field)
def set_defaults(self): def set_defaults(self):