source: trunk/package/mac80211/patches/400-ath_move_debug_code.patch @ 28095

Last change on this file since 28095 was 28095, checked in by nbd, 5 years ago

ath: fix compile errors with CONFIG_PACKAGE_ATH_DEBUG disabled (#10013)

File size: 706 bytes
  • drivers/net/wireless/ath/Makefile

    a b obj-$(CONFIG_ATH_COMMON) += ath.o 
    88ath-objs :=     main.o \ 
    99                regd.o \ 
    1010                hw.o \ 
    11                 key.o 
    12  
    13 ath-$(CONFIG_ATH_DEBUG) += debug.o 
     11                key.o \ 
     12                debug.o 
  • drivers/net/wireless/ath/ath.h

    a b ath_dbg(struct ath_common *common, enum  
    277277#endif /* CONFIG_ATH_DEBUG */ 
    278278 
    279279/** Returns string describing opmode, or NULL if unknown mode. */ 
    280 #ifdef CONFIG_ATH_DEBUG 
    281280const char *ath_opmode_to_string(enum nl80211_iftype opmode); 
    282 #else 
    283 static inline const char *ath_opmode_to_string(enum nl80211_iftype opmode) 
    284 { 
    285         return "UNKNOWN"; 
    286 } 
    287 #endif 
    288281 
    289282#endif /* ATH_H */ 
Note: See TracBrowser for help on using the repository browser.