diff options
author | Don Fry <donald.h.fry@intel.com> | 2012-03-15 16:27:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-09 16:37:49 -0400 |
commit | 47107e84446f4724d25c724493679cc50eeef53c (patch) | |
tree | 79995db57fc8d1d4e4a8ba07bfd29afb8df51bc7 /drivers/net/wireless/iwlwifi/iwl-power.c | |
parent | 17acd0b64e23d92013621dc2caa3042ce6769770 (diff) |
iwlwifi: split POWER_PMI status bit
Move the POWER_PMI to the op_mode where it is changed. The trans needs
to check it frequently, so shadow the status in the trans and update it
in trans when it infrequently changes.
Signed-off-by: Don Fry <donald.h.fry@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-power.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-power.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c index 958d9d09aee3..7bc7a82aba47 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.c +++ b/drivers/net/wireless/iwlwifi/iwl-power.c | |||
@@ -403,12 +403,12 @@ int iwl_power_set_mode(struct iwl_priv *priv, struct iwl_powertable_cmd *cmd, | |||
403 | } | 403 | } |
404 | 404 | ||
405 | if (cmd->flags & IWL_POWER_DRIVER_ALLOW_SLEEP_MSK) | 405 | if (cmd->flags & IWL_POWER_DRIVER_ALLOW_SLEEP_MSK) |
406 | set_bit(STATUS_POWER_PMI, &priv->shrd->status); | 406 | iwl_dvm_set_pmi(priv, true); |
407 | 407 | ||
408 | ret = iwl_set_power(priv, cmd); | 408 | ret = iwl_set_power(priv, cmd); |
409 | if (!ret) { | 409 | if (!ret) { |
410 | if (!(cmd->flags & IWL_POWER_DRIVER_ALLOW_SLEEP_MSK)) | 410 | if (!(cmd->flags & IWL_POWER_DRIVER_ALLOW_SLEEP_MSK)) |
411 | clear_bit(STATUS_POWER_PMI, &priv->shrd->status); | 411 | iwl_dvm_set_pmi(priv, false); |
412 | 412 | ||
413 | if (update_chains) | 413 | if (update_chains) |
414 | iwl_update_chain_flags(priv); | 414 | iwl_update_chain_flags(priv); |