]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[iwm] Add basic powermanagement support via ifconfig wlan0 powersave.
authoradrian <adrian@FreeBSD.org>
Tue, 9 May 2017 04:15:07 +0000 (04:15 +0000)
committeradrian <adrian@FreeBSD.org>
Tue, 9 May 2017 04:15:07 +0000 (04:15 +0000)
commit226ba17bef00080019afa32d6e73b668458a477c
treea3f9baa8c7775109c7be90abc844dd5f3b8bf6de
parent75fe4ef0539a719a98265ce734837eaf6a367182
[iwm] Add basic powermanagement support via ifconfig wlan0 powersave.

* The DEVICE_POWER_FLAGS_CAM_MSK flag was removed in the upstream iwlwifi
  in Linux commit ceef91c89480dd18bb3ac51e91280a233d0ca41f.

* Add sc_ps_disabled flag to struct iwm_softc, which corresponds to
  mvm->ps_disabled in struct iwl_mvm in Linux iwlwifi.

* Adds a hw.iwm.power_scheme tunable which corresponds to the power_scheme
  module parameter in Linux iwlwifi. Set this to 1 for completely
  disabling power management, 2 (default) for balanced powermanagement,
  and 3 for lowerpower mode (which does dtim period skipping).

* Imports the constants.h file from iwlwifi as if_iwm_constants.h.

* This doesn't allow changing the powermanagement setting while connected,
  also one can only choose between enabled and disabled powersaving with
  ifconfig (so switching between balanced and low-power mode requires
  rebooting to change the tunable).

* After any changes to powermanagement (i.e. "ifconfig wlan0 powersave" to
  enable powermanagement, or "ifconfig wlan0 -powersave" for disabling
  powermanagement), one has to disconnect and reconnect to the accespoint
  for the change to take effect.

Obtained from: dragonflybsd.git d7002a7990d077c92585978ea998474af50f91e0
sys/dev/iwm/if_iwm.c
sys/dev/iwm/if_iwm_constants.h [new file with mode: 0644]
sys/dev/iwm/if_iwm_power.c
sys/dev/iwm/if_iwm_power.h
sys/dev/iwm/if_iwmreg.h
sys/dev/iwm/if_iwmvar.h