aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Valo <kvalo@adurom.com>2011-06-13 18:34:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-20 15:16:32 -0400
commit47751b0fbff55f5f65d1a4d24ca10acd90259fc1 (patch)
tree92aca9c0c83fe8e7971ac03df8dd6b61a7ce6de6
parent2055403ded0b16b8fdb7d6f188dccdc9ca35d7d5 (diff)
iwlwifi: fix stop/wake queue hacks
The hacks break once mac80211-compat.h is taken into use. Fix it by adding an ifdef check. Signed-off-by: Kalle Valo <kvalo@adurom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-helpers.h b/drivers/net/wireless/iwlwifi/iwl-helpers.h
index 41207a3645b8..9d91552d13c1 100644
--- a/drivers/net/wireless/iwlwifi/iwl-helpers.h
+++ b/drivers/net/wireless/iwlwifi/iwl-helpers.h
@@ -120,7 +120,16 @@ static inline void iwl_wake_any_queue(struct iwl_priv *priv,
120 } 120 }
121} 121}
122 122
123#ifdef ieee80211_stop_queue
124#undef ieee80211_stop_queue
125#endif
126
123#define ieee80211_stop_queue DO_NOT_USE_ieee80211_stop_queue 127#define ieee80211_stop_queue DO_NOT_USE_ieee80211_stop_queue
128
129#ifdef ieee80211_wake_queue
130#undef ieee80211_wake_queue
131#endif
132
124#define ieee80211_wake_queue DO_NOT_USE_ieee80211_wake_queue 133#define ieee80211_wake_queue DO_NOT_USE_ieee80211_wake_queue
125 134
126static inline void iwl_disable_interrupts(struct iwl_priv *priv) 135static inline void iwl_disable_interrupts(struct iwl_priv *priv)