mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 22:40:10 +01:00
wifi/test: fix bug in test code wpa_flags_for_idx()
This commit is contained in:
parent
6adf25c53c
commit
ec35542cd5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue