ifcfg-rh: fill 'auth-alg' with the original value for WPA-PSK

Restore the original value of auth-alg, which can be NULL or 'open'
for WPA-PSK.

https://bugzilla.gnome.org/show_bug.cgi?id=770907
(cherry picked from commit b519b96c4e)
This commit is contained in:
Beniamino Galvani 2016-09-05 18:06:17 +02:00
parent 3bb3afbbe1
commit ee3d814f11

View file

@ -3205,6 +3205,12 @@ make_wpa_setting (shvarFile *ifcfg,
goto error;
}
g_free (value);
value = svGetValue (ifcfg, "SECURITYMODE", FALSE);
if (NM_IN_STRSET (value, NULL, "open"))
g_object_set (wsec, NM_SETTING_WIRELESS_SECURITY_AUTH_ALG, value, NULL);
g_free (value);
return (NMSetting *) wsec;