]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iwlwifi: mvm: modify the max SP to infinite
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 15 Mar 2016 09:12:20 +0000 (11:12 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 30 Mar 2016 13:21:21 +0000 (16:21 +0300)
This makes u-APSD work with more peers.

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

index 0668601f377cbead8d12e4b84160725acb5ddbe3..2e0a8824aabaeb9977c084823212111cebf8c0e3 100644 (file)
@@ -208,7 +208,7 @@ enum iwl_power_scheme {
 };
 
 #define IWL_CONN_MAX_LISTEN_INTERVAL   10
-#define IWL_UAPSD_MAX_SP               IEEE80211_WMM_IE_STA_QOSINFO_SP_2
+#define IWL_UAPSD_MAX_SP               IEEE80211_WMM_IE_STA_QOSINFO_SP_ALL
 
 #ifdef CONFIG_IWLWIFI_DEBUGFS
 enum iwl_dbgfs_pm_mask {
index f313910cd0269f9e764b527ae886a49b1d9e4ef7..7b1f6ad6062b89c8b0bb3b08331cc812e7515dcf 100644 (file)
@@ -227,7 +227,7 @@ static void iwl_mvm_power_configure_uapsd(struct iwl_mvm *mvm,
                        cpu_to_le16(IWL_MVM_PS_SNOOZE_WINDOW);
        }
 
-       cmd->uapsd_max_sp = IWL_UAPSD_MAX_SP;
+       cmd->uapsd_max_sp = mvm->hw->uapsd_max_sp_len;
 
        if (mvm->cur_ucode == IWL_UCODE_WOWLAN || cmd->flags &
            cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) {