aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorRon Rindjunsky <ron.rindjunsky@intel.com>2008-05-15 01:54:10 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:48:02 -0400
commit3647074973e70d0872b96ada27bbbb71fd1f628c (patch)
tree926ef1ccab06a6e0d1040013b9103ea4fd4f1959 /drivers/net/wireless/iwlwifi/iwl-dev.h
parentccc038abe4cb00cf56aeae5b1df47fcc4ed4136c (diff)
iwlwifi: rename and move Tx queue activation/deactivation
This patch moves iwl4965_txq_ctx_activate and iwl4965_txq_ctx_deactivate to iwl-dev.h and removes 4965 prefix from their names. Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 305491ff9beb..533479e717ab 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -1210,6 +1210,16 @@ struct iwl_priv {
1210 struct timer_list statistics_periodic; 1210 struct timer_list statistics_periodic;
1211}; /*iwl_priv */ 1211}; /*iwl_priv */
1212 1212
1213static inline void iwl_txq_ctx_activate(struct iwl_priv *priv, int txq_id)
1214{
1215 set_bit(txq_id, &priv->txq_ctx_active_msk);
1216}
1217
1218static inline void iwl_txq_ctx_deactivate(struct iwl_priv *priv, int txq_id)
1219{
1220 clear_bit(txq_id, &priv->txq_ctx_active_msk);
1221}
1222
1213static inline int iwl_is_associated(struct iwl_priv *priv) 1223static inline int iwl_is_associated(struct iwl_priv *priv)
1214{ 1224{
1215 return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0; 1225 return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;