iwlwifi: mvm: Enable power management on low-latency bss
authorAvri Altman <avri.altman@intel.com>
Wed, 5 Aug 2015 20:07:42 +0000 (23:07 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 16 Aug 2015 07:37:12 +0000 (10:37 +0300)
Currently the driver disable power management on all low-latency
interfaces, while it should disable it on WiDi interfaces only.
Non-P2P interfaces that runs voice and video traffic should enable
power management.

Signed-off-by: Avri Altman <avri.altman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/power.c

index c4e08903366c04090d18df64a29df89447951f63..4645877882a6af6ee51a87838f9f3b57e3ab0054 100644 (file)
@@ -337,8 +337,8 @@ static void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm,
 
        cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK);
 
-       if (!vif->bss_conf.ps || iwl_mvm_vif_low_latency(mvmvif) ||
-           !mvmvif->pm_enabled)
+       if (!vif->bss_conf.ps || !mvmvif->pm_enabled ||
+           (iwl_mvm_vif_low_latency(mvmvif) && vif->p2p))
                return;
 
        cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK);