diff options
author | Alexander Bondar <alexander.bondar@intel.com> | 2013-05-29 10:19:50 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-06-04 13:16:11 +0200 |
commit | 4bf881f5d55c2bb704771287613c8807ef181b3c (patch) | |
tree | 1e72a4c55499319b96b62cd196d3ca8a49a7e69b /drivers/net/wireless/iwlwifi/mvm/power.c | |
parent | 86a91ec757338edbce51de5dabd7afb0366f485c (diff) | |
download | blackbird-op-linux-4bf881f5d55c2bb704771287613c8807ef181b3c.tar.gz blackbird-op-linux-4bf881f5d55c2bb704771287613c8807ef181b3c.zip |
iwlwifi: mvm: Change location of vif_count verification for PM
Currently vif_count verification for power management enablement appear
in different places. Move these verifications to one place in
iwl_mvm_update_power_mode().
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/power.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/power.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/power.c b/drivers/net/wireless/iwlwifi/mvm/power.c index 67cf24aa72f9..6cb98ce96ac4 100644 --- a/drivers/net/wireless/iwlwifi/mvm/power.c +++ b/drivers/net/wireless/iwlwifi/mvm/power.c @@ -246,6 +246,17 @@ int iwl_mvm_power_update_mode(struct iwl_mvm *mvm, struct ieee80211_vif *vif) if (vif->type != NL80211_IFTYPE_STATION || vif->p2p) return 0; + /* + * TODO: The following vif_count verification is temporary condition. + * Avoid power mode update if more than one interface is currently + * active. Remove this condition when FW will support power management + * on multiple MACs. + */ + IWL_DEBUG_POWER(mvm, "Currently %d interfaces active\n", + mvm->vif_count); + if (mvm->vif_count > 1) + return 0; + iwl_mvm_power_build_cmd(mvm, vif, &cmd); iwl_mvm_power_log(mvm, &cmd); |