aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2012-05-29 06:07:30 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-06-06 07:21:19 -0400
commitd0624be65ade709ef1a4220451a474be1ad01af9 (patch)
tree81eaecd8b1e16435add9d3daf17b83b628c5e0da /drivers/net/wireless/iwlwifi/iwl-trans.h
parent559b1a257ddeac637b8bb3a2c2469aaa2bde5383 (diff)
iwlwifi: s/txq_agg_disable/txq_disable
We need to be able to enable / disable Tx queues in HW dynamically. So this function is no longer related to AGG only. It can do the job for any queue, even AC ones. Change the name to better reflect its role. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h
index 0aeeb7ce91c7..1fff285b6435 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.h
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.h
@@ -358,7 +358,7 @@ struct iwl_trans;
358 * @tx_agg_setup: setup a tx queue for AMPDU - will be called once the HW is 358 * @tx_agg_setup: setup a tx queue for AMPDU - will be called once the HW is
359 * ready and a successful ADDBA response has been received. 359 * ready and a successful ADDBA response has been received.
360 * May sleep 360 * May sleep
361 * @tx_agg_disable: de-configure a Tx queue to send AMPDUs 361 * @txq_disable: de-configure a Tx queue to send AMPDUs
362 * Must be atomic 362 * Must be atomic
363 * @wait_tx_queue_empty: wait until all tx queues are empty 363 * @wait_tx_queue_empty: wait until all tx queues are empty
364 * May sleep 364 * May sleep
@@ -393,7 +393,7 @@ struct iwl_trans_ops {
393 393
394 void (*tx_agg_setup)(struct iwl_trans *trans, int queue, int fifo, 394 void (*tx_agg_setup)(struct iwl_trans *trans, int queue, int fifo,
395 int sta_id, int tid, int frame_limit, u16 ssn); 395 int sta_id, int tid, int frame_limit, u16 ssn);
396 void (*tx_agg_disable)(struct iwl_trans *trans, int queue); 396 void (*txq_disable)(struct iwl_trans *trans, int queue);
397 397
398 int (*dbgfs_register)(struct iwl_trans *trans, struct dentry* dir); 398 int (*dbgfs_register)(struct iwl_trans *trans, struct dentry* dir);
399 int (*wait_tx_queue_empty)(struct iwl_trans *trans); 399 int (*wait_tx_queue_empty)(struct iwl_trans *trans);
@@ -543,12 +543,12 @@ static inline void iwl_trans_reclaim(struct iwl_trans *trans, int queue,
543 trans->ops->reclaim(trans, queue, ssn, skbs); 543 trans->ops->reclaim(trans, queue, ssn, skbs);
544} 544}
545 545
546static inline void iwl_trans_tx_agg_disable(struct iwl_trans *trans, int queue) 546static inline void iwl_trans_txq_disable(struct iwl_trans *trans, int queue)
547{ 547{
548 WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE, 548 WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
549 "%s bad state = %d", __func__, trans->state); 549 "%s bad state = %d", __func__, trans->state);
550 550
551 trans->ops->tx_agg_disable(trans, queue); 551 trans->ops->txq_disable(trans, queue);
552} 552}
553 553
554static inline void iwl_trans_tx_agg_setup(struct iwl_trans *trans, int queue, 554static inline void iwl_trans_tx_agg_setup(struct iwl_trans *trans, int queue,