diff options
author | Thomas Haller <thaller@redhat.com> | 2016-02-26 16:25:32 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-02-26 16:32:24 +0100 |
commit | ec35542cd52596826ce312648574b0e7cbe69cec (patch) | |
tree | 382896b981351455403b10d3a322f1b880d4d03e | |
parent | 6adf25c53c39699f31ef8ae0c989b7385cff858d (diff) | |
download | NetworkManager-ec35542cd52596826ce312648574b0e7cbe69cec.tar.gz |
wifi/test: fix bug in test code wpa_flags_for_idx()
-rw-r--r-- | src/devices/wifi/tests/test-wifi-ap-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/wifi/tests/test-wifi-ap-utils.c b/src/devices/wifi/tests/test-wifi-ap-utils.c index 70e80ae9b0..01990beed7 100644 --- a/src/devices/wifi/tests/test-wifi-ap-utils.c +++ b/src/devices/wifi/tests/test-wifi-ap-utils.c @@ -593,7 +593,7 @@ wpa_flags_for_idx (guint32 idx) return NM_802_11_AP_SEC_PAIR_TKIP | NM_802_11_AP_SEC_GROUP_TKIP | NM_802_11_AP_SEC_KEY_MGMT_PSK; else if (idx == IDX_WPA_RSN_PSK_PTKIP_PCCMP_GTKIP) return NM_802_11_AP_SEC_PAIR_TKIP | NM_802_11_AP_SEC_PAIR_CCMP | NM_802_11_AP_SEC_GROUP_TKIP | NM_802_11_AP_SEC_KEY_MGMT_PSK; - else if (IDX_WPA_RSN_PSK_PCCMP_GCCMP) + else if (NM_IN_SET (idx, IDX_WPA_PSK_PTKIP_PCCMP_GTKIP, IDX_WPA_RSN_PSK_PCCMP_GCCMP)) return NM_802_11_AP_SEC_PAIR_CCMP | NM_802_11_AP_SEC_GROUP_CCMP | NM_802_11_AP_SEC_KEY_MGMT_PSK; else if (idx == IDX_WPA_8021X) return NM_802_11_AP_SEC_PAIR_TKIP | NM_802_11_AP_SEC_GROUP_TKIP | NM_802_11_AP_SEC_KEY_MGMT_802_1X; |