400-ath_move_debug_code.patch 795 B

123456789101112131415161718192021222324252627282930
  1. --- a/drivers/net/wireless/ath/Makefile
  2. +++ b/drivers/net/wireless/ath/Makefile
  3. @@ -13,10 +13,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. -ath-$(CPTCFG_ATH_DEBUG) += debug.o
  11. ath-$(CPTCFG_ATH_TRACEPOINTS) += trace.o
  12. ccflags-y += -D__CHECK_ENDIAN__
  13. --- a/drivers/net/wireless/ath/ath.h
  14. +++ b/drivers/net/wireless/ath/ath.h
  15. @@ -318,13 +318,6 @@ void _ath_dbg(struct ath_common *common,
  16. #endif /* CPTCFG_ATH_DEBUG */
  17. /** Returns string describing opmode, or NULL if unknown mode. */
  18. -#ifdef CPTCFG_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. #endif /* ATH_H */