aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:11:27 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:33:00 -0400
commit7f01d567c5b9e136d9b070e00be88169d5b2227e (patch)
tree9d324c7d826a9a3ace799df5bceae41c5795bbcb /drivers/net/wireless/iwlwifi/iwl-trans.c
parent464021ffc1c080283e67729d966d76612728a08c (diff)
iwlagn: move the disable agg logic to transport layer
Since all the check_empty logic is now in the transport layer, the upper layer doesn't need to know anything about tx queues. The disable aggregation flow was the last to know what a tx queue is, so move it too. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.c b/drivers/net/wireless/iwlwifi/iwl-trans.c
index 0256454427fd..ab35fd827bdc 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.c
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.c
@@ -1281,7 +1281,7 @@ static int iwlagn_txq_check_empty(struct iwl_trans *trans,
1281 (q->read_ptr == q->write_ptr)) { 1281 (q->read_ptr == q->write_ptr)) {
1282 IWL_DEBUG_HT(trans, 1282 IWL_DEBUG_HT(trans,
1283 "HW queue empty: continue DELBA flow\n"); 1283 "HW queue empty: continue DELBA flow\n");
1284 iwl_trans_pcie_txq_agg_disable(priv(trans), txq_id); 1284 iwl_trans_pcie_txq_agg_disable(trans, txq_id);
1285 tid_data->agg.state = IWL_AGG_OFF; 1285 tid_data->agg.state = IWL_AGG_OFF;
1286 iwl_stop_tx_ba_trans_ready(priv(trans), 1286 iwl_stop_tx_ba_trans_ready(priv(trans),
1287 NUM_IWL_RXON_CTX, 1287 NUM_IWL_RXON_CTX,
@@ -2015,7 +2015,7 @@ const struct iwl_trans_ops trans_ops_pcie = {
2015 .tx = iwl_trans_pcie_tx, 2015 .tx = iwl_trans_pcie_tx,
2016 .reclaim = iwl_trans_pcie_reclaim, 2016 .reclaim = iwl_trans_pcie_reclaim,
2017 2017
2018 .txq_agg_disable = iwl_trans_pcie_txq_agg_disable, 2018 .tx_agg_disable = iwl_trans_pcie_tx_agg_disable,
2019 .tx_agg_alloc = iwl_trans_pcie_tx_agg_alloc, 2019 .tx_agg_alloc = iwl_trans_pcie_tx_agg_alloc,
2020 .txq_agg_setup = iwl_trans_pcie_txq_agg_setup, 2020 .txq_agg_setup = iwl_trans_pcie_txq_agg_setup,
2021 2021