diff options
| author | Michael Biebl <biebl@debian.org> | 2017-09-20 21:04:15 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2017-09-20 21:04:15 +0200 |
| commit | bdb6eeb0670658255c2a4c3c501c0a27fa8cfe55 (patch) | |
| tree | 7f6a4560c8cd3e1730df2af4ed6c3e4c5c0265f6 /clients/cli/devices.c | |
| parent | b9f0451fa35393ceedf6d9d20b78c43578ebea5d (diff) | |
New upstream version 1.8.4 upstream/1.8.4
Diffstat (limited to 'clients/cli/devices.c')
| -rw-r--r-- | clients/cli/devices.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/cli/devices.c b/clients/cli/devices.c index 50983de6..f609e1dc 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -3147,8 +3147,8 @@ do_device_wifi_connect_network (NmCli *nmc, int argc, char **argv) NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, wep_passphrase ? NM_WEP_KEY_TYPE_PASSPHRASE: NM_WEP_KEY_TYPE_KEY, NULL); - } else if ( !(ap_wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X) - && !(ap_rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X)) { + } else if ( (ap_wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK) + || (ap_rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK)) { /* WPA PSK */ g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_PSK, password, NULL); } |