iwlwifi: mvm: rs: don't allow TPC when power save is disabled
authorEyal Shapira <eyal@wizery.com>
Mon, 21 Apr 2014 18:33:17 +0000 (21:33 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 6 May 2014 17:39:58 +0000 (20:39 +0300)
commit1e9551debacdaa044eeb514f4366beac6e18f6d9
treec8bc546d6627c80336480c415aca8d7a79757709
parent80763515c371202916ecdb4118dbed51f801aeb5
iwlwifi: mvm: rs: don't allow TPC when power save is disabled

Currently we were checking only if the driver power_scheme is set
to CAM. TPC shouldn't be enabled also when disabling powersave on the
interface (e.g. iw wlan0 set power_save off)
which may occur even if power_scheme wasn't set to CAM.

Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Reviewed-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c