Root/package/mac80211/patches/400-ath_move_debug_code.patch

1--- a/drivers/net/wireless/ath/Makefile
2+++ b/drivers/net/wireless/ath/Makefile
3@@ -8,6 +8,5 @@ obj-$(CONFIG_ATH_COMMON) += ath.o
4 ath-objs := main.o \
5         regd.o \
6         hw.o \
7- key.o
8-
9-ath-$(CONFIG_ATH_DEBUG) += debug.o
10+ key.o \
11+ debug.o
12--- a/drivers/net/wireless/ath/ath.h
13+++ b/drivers/net/wireless/ath/ath.h
14@@ -272,13 +272,6 @@ void ath_dbg(struct ath_common *common,
15 #endif /* CONFIG_ATH_DEBUG */
16 
17 /** Returns string describing opmode, or NULL if unknown mode. */
18-#ifdef CONFIG_ATH_DEBUG
19 const char *ath_opmode_to_string(enum nl80211_iftype opmode);
20-#else
21-static inline const char *ath_opmode_to_string(enum nl80211_iftype opmode)
22-{
23- return "UNKNOWN";
24-}
25-#endif
26 
27 #endif /* ATH_H */
28

Archive Download this file



interactive