iwlwifi: mvm: don't disable power management due to P2P device
authorAlexander Bondar <alexander.bondar@intel.com>
Tue, 5 Mar 2013 08:16:40 +0000 (10:16 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Apr 2013 20:49:14 +0000 (22:49 +0200)
commit5ee2b2154e73fe1e80c6ec4c84ad9ffadb524aec
treeead006969661a7785b0b935e44476f30b4376162
parentf4a3e2fefec24c92c803e709b8cf1ef005118b8e
iwlwifi: mvm: don't disable power management due to P2P device

Currently power management is supported only when only a single
virtual interface is present. The driver verifies number of created
interfaces and disables power management when multiple interfaces
present. However, this rule does not extend to a P2P device that is
handled differently in the firmware. If a P2P device is added power
management can remain enabled.

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/mvm.h