iwlwifi: fix stop/wake queue hacks
authorKalle Valo <kvalo@adurom.com>
Mon, 13 Jun 2011 22:34:50 +0000 (01:34 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 20 Jun 2011 19:16:32 +0000 (15:16 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-helpers.h

index 41207a3645b81540c0d4d84aeff81e5e25ae4b44..9d91552d13c1d5cf311ca9ac12a903ccef965573 100644 (file)
@@ -120,7 +120,16 @@ static inline void iwl_wake_any_queue(struct iwl_priv *priv,
        }
 }
 
+#ifdef ieee80211_stop_queue
+#undef ieee80211_stop_queue
+#endif
+
 #define ieee80211_stop_queue DO_NOT_USE_ieee80211_stop_queue
+
+#ifdef ieee80211_wake_queue
+#undef ieee80211_wake_queue
+#endif
+
 #define ieee80211_wake_queue DO_NOT_USE_ieee80211_wake_queue
 
 static inline void iwl_disable_interrupts(struct iwl_priv *priv)