iwlwifi: mvm: Change location of vif_count verification for PM
authorAlexander Bondar <alexander.bondar@intel.com>
Wed, 29 May 2013 07:19:50 +0000 (10:19 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Jun 2013 11:16:11 +0000 (13:16 +0200)
commit4bf881f5d55c2bb704771287613c8807ef181b3c
tree1e72a4c55499319b96b62cd196d3ca8a49a7e69b
parent86a91ec757338edbce51de5dabd7afb0366f485c
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>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/power.c