summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/fw.c
diff options
context:
space:
mode:
authorAlexander Bondar <alexander.bondar@intel.com>2013-09-03 14:18:03 +0300
committerJohannes Berg <johannes.berg@intel.com>2013-10-11 09:56:57 +0200
commit64b928c4e2898dea07d5850a0708dceeb118fa3b (patch)
treed8a8f6c7b21326dadf7431e83ff4fb23f28342e2 /drivers/net/wireless/iwlwifi/mvm/fw.c
parent42550a53db232383ffe8d0c7d0ae9e72e2ca986b (diff)
downloadblackbird-op-linux-64b928c4e2898dea07d5850a0708dceeb118fa3b.tar.gz
blackbird-op-linux-64b928c4e2898dea07d5850a0708dceeb118fa3b.zip
iwlwifi: mvm: Add device wide power command
FW starts using legacy power table command (0x77) for device wide power settings. Currently this command contains only option flags field. It can configure the following: CAM (Continuous Active Mode) and POWER_SAVE_ENABLE debug option. Send this command when firmware is loaded - D0 and D3. Note: Setting this command is important to avoid unwanted FW behavior. It particularly fixes a bug when a device does not drop to low power after disassociation from AP. Signed-off-by: Alexander Bondar <alexander.bondar@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/fw.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/fw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/fw.c b/drivers/net/wireless/iwlwifi/mvm/fw.c
index f96186f28035..8c784e622802 100644
--- a/drivers/net/wireless/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/iwlwifi/mvm/fw.c
@@ -428,6 +428,10 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
goto error;
}
+ ret = iwl_mvm_power_update_device_mode(mvm);
+ if (ret)
+ goto error;
+
IWL_DEBUG_INFO(mvm, "RT uCode started.\n");
return 0;
error:
OpenPOWER on IntegriCloud