aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/tx.c
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2013-03-13 09:20:35 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-03-20 09:17:07 -0400
commit398e8c6c4eea39853a80cc1513f80026c1a62519 (patch)
tree548a94b133797f41af93f42f0ea7bf3fd6a291a3 /drivers/net/wireless/iwlwifi/mvm/tx.c
parenta77feb5d460778368abf2c6f84d238e31a1fa049 (diff)
iwlwifi: mvm: Remove obsolete queue definitions
Signed-off-by: Ilan Peer <ilan.peer@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/tx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/tx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/tx.c b/drivers/net/wireless/iwlwifi/mvm/tx.c
index a65acf09f913..ccff2e5f71a6 100644
--- a/drivers/net/wireless/iwlwifi/mvm/tx.c
+++ b/drivers/net/wireless/iwlwifi/mvm/tx.c
@@ -417,7 +417,7 @@ int iwl_mvm_tx_skb(struct iwl_mvm *mvm, struct sk_buff *skb,
417 spin_unlock(&mvmsta->lock); 417 spin_unlock(&mvmsta->lock);
418 418
419 if (mvmsta->vif->type == NL80211_IFTYPE_AP && 419 if (mvmsta->vif->type == NL80211_IFTYPE_AP &&
420 txq_id < IWL_FIRST_AMPDU_QUEUE) 420 txq_id < IWL_MVM_FIRST_AGG_QUEUE)
421 atomic_inc(&mvmsta->pending_frames); 421 atomic_inc(&mvmsta->pending_frames);
422 422
423 return 0; 423 return 0;
@@ -606,7 +606,7 @@ static void iwl_mvm_rx_tx_cmd_single(struct iwl_mvm *mvm,
606 info); 606 info);
607 607
608 /* Single frame failure in an AMPDU queue => send BAR */ 608 /* Single frame failure in an AMPDU queue => send BAR */
609 if (txq_id >= IWL_FIRST_AMPDU_QUEUE && 609 if (txq_id >= IWL_MVM_FIRST_AGG_QUEUE &&
610 !(info->flags & IEEE80211_TX_STAT_ACK)) 610 !(info->flags & IEEE80211_TX_STAT_ACK))
611 info->flags |= IEEE80211_TX_STAT_AMPDU_NO_BACK; 611 info->flags |= IEEE80211_TX_STAT_AMPDU_NO_BACK;
612 612
@@ -619,7 +619,7 @@ static void iwl_mvm_rx_tx_cmd_single(struct iwl_mvm *mvm,
619 ieee80211_tx_status_ni(mvm->hw, skb); 619 ieee80211_tx_status_ni(mvm->hw, skb);
620 } 620 }
621 621
622 if (txq_id >= IWL_FIRST_AMPDU_QUEUE) { 622 if (txq_id >= IWL_MVM_FIRST_AGG_QUEUE) {
623 /* If this is an aggregation queue, we use the ssn since: 623 /* If this is an aggregation queue, we use the ssn since:
624 * ssn = wifi seq_num % 256. 624 * ssn = wifi seq_num % 256.
625 * The seq_ctl is the sequence control of the packet to which 625 * The seq_ctl is the sequence control of the packet to which
@@ -681,7 +681,7 @@ static void iwl_mvm_rx_tx_cmd_single(struct iwl_mvm *mvm,
681 * If there are no pending frames for this STA, notify mac80211 that 681 * If there are no pending frames for this STA, notify mac80211 that
682 * this station can go to sleep in its STA table. 682 * this station can go to sleep in its STA table.
683 */ 683 */
684 if (txq_id < IWL_FIRST_AMPDU_QUEUE && mvmsta && 684 if (txq_id < IWL_MVM_FIRST_AGG_QUEUE && mvmsta &&
685 !WARN_ON(skb_freed > 1) && 685 !WARN_ON(skb_freed > 1) &&
686 mvmsta->vif->type == NL80211_IFTYPE_AP && 686 mvmsta->vif->type == NL80211_IFTYPE_AP &&
687 atomic_sub_and_test(skb_freed, &mvmsta->pending_frames)) { 687 atomic_sub_and_test(skb_freed, &mvmsta->pending_frames)) {
@@ -750,7 +750,7 @@ static void iwl_mvm_rx_tx_cmd_agg(struct iwl_mvm *mvm,
750 u16 sequence = le16_to_cpu(pkt->hdr.sequence); 750 u16 sequence = le16_to_cpu(pkt->hdr.sequence);
751 struct ieee80211_sta *sta; 751 struct ieee80211_sta *sta;
752 752
753 if (WARN_ON_ONCE(SEQ_TO_QUEUE(sequence) < IWL_FIRST_AMPDU_QUEUE)) 753 if (WARN_ON_ONCE(SEQ_TO_QUEUE(sequence) < IWL_MVM_FIRST_AGG_QUEUE))
754 return; 754 return;
755 755
756 if (WARN_ON_ONCE(tid == IWL_TID_NON_QOS)) 756 if (WARN_ON_ONCE(tid == IWL_TID_NON_QOS))