mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 20:30:35 +01:00
ifcfg-rh: PSK isn't necessary for valid WPA connection
We'll ask secret agents for it if it's not stored in the connection.
This commit is contained in:
parent
ca1338007c
commit
16a8a951e9
1 changed files with 5 additions and 8 deletions
|
|
@ -1895,11 +1895,8 @@ parse_wpa_psk (shvarFile *ifcfg,
|
|||
if (!psk)
|
||||
psk = svGetValue (ifcfg, "WPA_PSK", TRUE);
|
||||
|
||||
if (!psk) {
|
||||
g_set_error (error, IFCFG_PLUGIN_ERROR, 0,
|
||||
"Missing WPA_PSK for WPA-PSK key management");
|
||||
if (!psk)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
p = psk;
|
||||
|
||||
|
|
@ -2516,10 +2513,10 @@ make_wpa_setting (shvarFile *ifcfg,
|
|||
|
||||
if (!strcmp (value, "WPA-PSK")) {
|
||||
psk = parse_wpa_psk (ifcfg, file, ssid, error);
|
||||
if (!psk)
|
||||
goto error;
|
||||
g_object_set (wsec, NM_SETTING_WIRELESS_SECURITY_PSK, psk, NULL);
|
||||
g_free (psk);
|
||||
if (psk) {
|
||||
g_object_set (wsec, NM_SETTING_WIRELESS_SECURITY_PSK, psk, NULL);
|
||||
g_free (psk);
|
||||
}
|
||||
|
||||
if (adhoc)
|
||||
g_object_set (wsec, NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "wpa-none", NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue