e7df0e14be5d49d98a1512a981d515e717a82891
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / ath / 400-ath_move_debug_code.patch
1 --- a/drivers/net/wireless/ath/Makefile
2 +++ b/drivers/net/wireless/ath/Makefile
3 @@ -14,10 +14,10 @@ ath-objs := main.o \
4 regd.o \
5 hw.o \
6 key.o \
7 + debug.o \
8 dfs_pattern_detector.o \
9 dfs_pri_detector.o
10
11 -ath-$(CPTCFG_ATH_DEBUG) += debug.o
12 ath-$(CPTCFG_ATH_TRACEPOINTS) += trace.o
13
14 CFLAGS_trace.o := -I$(src)
15 --- a/drivers/net/wireless/ath/ath.h
16 +++ b/drivers/net/wireless/ath/ath.h
17 @@ -316,14 +316,7 @@ void _ath_dbg(struct ath_common *common,
18 #endif /* CPTCFG_ATH_DEBUG */
19
20 /** Returns string describing opmode, or NULL if unknown mode. */
21 -#ifdef CPTCFG_ATH_DEBUG
22 const char *ath_opmode_to_string(enum nl80211_iftype opmode);
23 -#else
24 -static inline const char *ath_opmode_to_string(enum nl80211_iftype opmode)
25 -{
26 - return "UNKNOWN";
27 -}
28 -#endif
29
30 extern const char *ath_bus_type_strings[];
31 static inline const char *ath_bus_type_to_string(enum ath_bus_type bustype)