1 --- a/drivers/net/wireless/ath/ath9k/Makefile
2 +++ b/drivers/net/wireless/ath/ath9k/Makefile
3 @@ -7,7 +7,7 @@ ath9k-y += beacon.o \
5 ath9k-$(CONFIG_PCI) += pci.o
6 ath9k-$(CONFIG_ATHEROS_AR71XX) += ahb.o
7 -ath9k-$(CONFIG_ATH9K_DEBUG) += debug.o
8 +ath9k-$(CONFIG_ATH9K_DEBUGFS) += debug.o
10 obj-$(CONFIG_ATH9K) += ath9k.o
12 --- a/drivers/net/wireless/ath/ath9k/ath9k.h
13 +++ b/drivers/net/wireless/ath/ath9k/ath9k.h
14 @@ -483,7 +483,7 @@ struct ath_softc {
18 -#ifdef CONFIG_ATH9K_DEBUG
19 +#ifdef CONFIG_ATH9K_DEBUGFS
20 struct ath9k_debug debug;
22 struct ath_beacon_config cur_beacon_conf;
23 --- a/drivers/net/wireless/ath/ath9k/debug.c
24 +++ b/drivers/net/wireless/ath/ath9k/debug.c
25 @@ -31,6 +31,8 @@ static int ath9k_debugfs_open(struct ino
29 +#ifdef CONFIG_ATH_DEBUG
31 static ssize_t read_file_debug(struct file *file, char __user *user_buf,
32 size_t count, loff_t *ppos)
34 @@ -71,6 +73,8 @@ static const struct file_operations fops
40 static ssize_t read_file_dma(struct file *file, char __user *user_buf,
41 size_t count, loff_t *ppos)
43 @@ -563,10 +567,12 @@ int ath9k_init_debug(struct ath_hw *ah)
44 if (!sc->debug.debugfs_phy)
47 +#ifdef CONFIG_ATH_DEBUG
48 sc->debug.debugfs_debug = debugfs_create_file("debug",
49 S_IRUSR | S_IWUSR, sc->debug.debugfs_phy, sc, &fops_debug);
50 if (!sc->debug.debugfs_debug)
54 sc->debug.debugfs_dma = debugfs_create_file("dma", S_IRUSR,
55 sc->debug.debugfs_phy, sc, &fops_dma);
56 --- a/drivers/net/wireless/ath/ath9k/debug.h
57 +++ b/drivers/net/wireless/ath/ath9k/debug.h
62 -#ifdef CONFIG_ATH9K_DEBUG
63 +#ifdef CONFIG_ATH9K_DEBUGFS
64 #define TX_STAT_INC(q, c) sc->debug.stats.txstats[q].c++
66 #define TX_STAT_INC(q, c) do { } while (0)
69 -#ifdef CONFIG_ATH9K_DEBUG
70 +#ifdef CONFIG_ATH9K_DEBUGFS
73 * struct ath_interrupt_stats - Contains statistics about interrupts
74 @@ -186,6 +186,6 @@ static inline void ath_debug_stat_retrie
78 -#endif /* CONFIG_ATH9K_DEBUG */
79 +#endif /* CONFIG_ATH9K_DEBUGFS */