mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-22 22:00:08 +01:00
ifcfg-rh: add Wi-Fi powersave support
This commit is contained in:
parent
5293683e4a
commit
6a3531d02d
2 changed files with 6 additions and 0 deletions
|
|
@ -3415,6 +3415,11 @@ make_wireless_setting (shvarFile *ifcfg,
|
|||
svTrueValue (ifcfg, "SSID_HIDDEN", FALSE),
|
||||
NULL);
|
||||
|
||||
g_object_set (s_wireless,
|
||||
NM_SETTING_WIRELESS_POWERSAVE,
|
||||
svTrueValue (ifcfg, "POWERSAVE", FALSE) ? 1 : 0,
|
||||
NULL);
|
||||
|
||||
return NM_SETTING (s_wireless);
|
||||
|
||||
error:
|
||||
|
|
|
|||
|
|
@ -972,6 +972,7 @@ write_wireless_setting (NMConnection *connection,
|
|||
}
|
||||
|
||||
svSetValue (ifcfg, "SSID_HIDDEN", nm_setting_wireless_get_hidden (s_wireless) ? "yes" : NULL, TRUE);
|
||||
svSetValue (ifcfg, "POWERSAVE", nm_setting_wireless_get_powersave (s_wireless) ? "yes" : NULL, TRUE);
|
||||
|
||||
svSetValue (ifcfg, "TYPE", TYPE_WIRELESS, FALSE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue