From: Jouni Malinen Date: Sat, 2 Dec 2017 10:03:53 +0000 (+0200) Subject: tests: Allow more ciphers in ap_wps_mixed_cred X-Git-Tag: hostap_2_7~734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70dcb4aa0eda857a3475f3c84f8b02b186734317;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 118166419..f2e894df8 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