From: Emmanuel Grumbach Date: Tue, 28 May 2013 18:31:50 +0000 (+0300) Subject: iwlwifi: mvm: limit the length of the AMPDU when BT is running X-Git-Tag: v3.11-rc1~16^2~103^2^2~5^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e96d551f4bc6a13942aa5837ca6739c61d540945;p=profile%2Fivi%2Fkernel-x86-ivi.git iwlwifi: mvm: limit the length of the AMPDU when BT is running This holds for existing BA agreements. Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.c b/drivers/net/wireless/iwlwifi/mvm/rs.c index 6a050c6..7dfc212 100644 --- a/drivers/net/wireless/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/iwlwifi/mvm/rs.c @@ -2782,6 +2782,13 @@ static void rs_fill_link_cmd(struct iwl_mvm *mvm, lq_cmd->agg_time_limit = cpu_to_le16(LINK_QUAL_AGG_TIME_LIMIT_DEF); + + /* + * overwrite if needed, pass aggregation time limit + * to uCode in uSec - This is racy - but heh, at least it helps... + */ + if (mvm && BT_MBOX_MSG(&mvm->last_bt_notif, 3, TRAFFIC_LOAD) >= 2) + lq_cmd->agg_time_limit = cpu_to_le16(1200); } static void *rs_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir)