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