aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-12-02 10:03:53 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-02 10:04:32 (GMT)
commit70dcb4aa0eda857a3475f3c84f8b02b186734317 (patch)
tree8cbb2a0fe955d33c83bb3f3fe40ae92e9791f1d0
parent5f481b6fdbc39d23ba8558b73fb83178c383f8c3 (diff)
downloadhostap-70dcb4aa0eda857a3475f3c84f8b02b186734317.zip
hostap-70dcb4aa0eda857a3475f3c84f8b02b186734317.tar.gz
hostap-70dcb4aa0eda857a3475f3c84f8b02b186734317.tar.bz2
tests: Allow more ciphers in ap_wps_mixed_cred
This is needed to avoid false errors with GCMP-256 and CCMP-256 to be added in the implementation. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--tests/hwsim/test_ap_wps.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py
index 1181664..f2e894d 100644
--- a/tests/hwsim/test_ap_wps.py
+++ b/tests/hwsim/test_ap_wps.py
@@ -3493,7 +3493,8 @@ def test_ap_wps_mixed_cred(dev, apdev):
if proto != "WPA RSN":
raise Exception("Unexpected merged proto field value: " + proto)
pairwise = dev[0].get_network(id, "pairwise")
- if pairwise != "CCMP TKIP" and pairwise != "CCMP GCMP TKIP":
+ p = pairwise.split()
+ if "CCMP" not in p or "TKIP" not in p:
raise Exception("Unexpected merged pairwise field value: " + pairwise)
@remote_compatible