wifi: don't touch by default current powersave setting
authorBeniamino Galvani <bgalvani@redhat.com>
Wed, 10 Feb 2016 15:46:34 +0000 (16:46 +0100)
committerBeniamino Galvani <bgalvani@redhat.com>
Mon, 15 Feb 2016 23:18:06 +0000 (00:18 +0100)
commit10b222288e686f0e37eaf148a8d99100d75a178b
tree5448e51c595762bf56f54b4dd32cbe76d255b6ad
parent0f5c5ad44692d029eec60cdc7d8783b51ede59bb
wifi: don't touch by default current powersave setting

Some drivers (or things outside NM like 'powertop') may turn powersave
on, so don't touch it unless explicitly configured by user.

To achieve this, add new 'default' and 'ignore' options; the former
can be used to fall back to a globally configured setting, while the
latter tells NM not to touch the current setting.

When 'default' is specified, a missing global default configuration is
equivalent to 'ignore'.

It is possible to enable Wi-Fi power saving for all connections by
dropping a file in /etc/NetworkManager/conf.d with the following
content:

 [connection]
 wifi.powersave=3

https://bugzilla.gnome.org/show_bug.cgi?id=760125
clients/cli/settings.c
libnm-core/nm-setting-wireless.c
libnm-core/nm-setting-wireless.h
libnm/libnm.ver
man/NetworkManager.conf.xml.in
src/devices/wifi/nm-device-wifi.c
src/settings/plugins/ifcfg-rh/reader.c
src/settings/plugins/ifcfg-rh/writer.c