iwlwifi: mvm: BT Coex - remove duplicate code in rate control
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 6 Oct 2013 08:08:48 +0000 (11:08 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Oct 2013 07:58:44 +0000 (09:58 +0200)
The code limiting the AMPDU length due to BT traffic was
duplicated. Remove the redundant code.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c

index dfd8025a7de76bfbf98bdebb5d47a174e60ceb06..0faeecc0ab1cd19ae02ef07a2e08c8c2a259375d 100644 (file)
@@ -2530,13 +2530,6 @@ static void rs_fill_link_cmd(struct iwl_mvm *mvm,
        if (sta)
                lq_cmd->agg_time_limit =
                        cpu_to_le16(iwl_mvm_bt_coex_agg_time_limit(mvm, sta));
-
-       /*
-        * overwrite if needed, pass aggregation time limit
-        * to uCode in uSec - This is racy - but heh, at least it helps...
-        */
-       if (mvm && le32_to_cpu(mvm->last_bt_notif.bt_activity_grading) >= 2)
-               lq_cmd->agg_time_limit = cpu_to_le16(1200);
 }
 
 static void *rs_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir)