Skip to contentSkip to conversation

iwlwifi: fix typo which caused iwl_get_tx_fail_reason to ever return an empty string

PATCH In review Helmut Schaa 2 participants 2 messages Jul 2, 2008 – Jul 3, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iwlwifi: fix typo which caused iwl_get_tx_fail_reason to ever return an empty string

Fix a typo which caused iwl_get_tx_fail_reason to ever return an empty string.

---

drivers/net/wireless/iwlwifi/iwl-dev.h +1 -1
index 81ff4c2..5dd72cb 100644
@@ -1121,7 +1121,7 @@ static inline void iwl_txq_ctx_deactivate(struct iwl_priv *priv, int txq_id)
 	clear_bit(txq_id, &priv->txq_ctx_active_msk);
 }
 
-#ifdef CONFIG_IWLWIF_DEBUG
+#ifdef CONFIG_IWLWIFI_DEBUG
 const char *iwl_get_tx_fail_reason(u32 status);
 #else
 static inline const char *iwl_get_tx_fail_reason(u32 status) { return ""; }
drivers/net/wireless/iwlwifi/iwl-tx.c +1 -1
index 7296e28..d38241f 100644
@@ -1350,7 +1350,7 @@ int iwl_txq_check_empty(struct iwl_priv *priv, int sta_id, u8 tid, int txq_id)
 }
 EXPORT_SYMBOL(iwl_txq_check_empty);
 
-#ifdef CONFIG_IWLWIF_DEBUG
+#ifdef CONFIG_IWLWIFI_DEBUG
 #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x
 
 const char *iwl_get_tx_fail_reason(u32 status)