X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c537863342182954341e4a21bb9b56888e334213..f251f740878af188b1f27d19ec921efa6c577349:/package/madwifi/patches/200-no_debug.patch?ds=sidebyside diff --git a/package/madwifi/patches/200-no_debug.patch b/package/madwifi/patches/200-no_debug.patch index ed443893a..3f46ec88b 100644 --- a/package/madwifi/patches/200-no_debug.patch +++ b/package/madwifi/patches/200-no_debug.patch @@ -43,7 +43,7 @@ ic->ic_set_dfs_testmode = ath_set_dfs_testmode; ic->ic_get_dfs_testmode = ath_get_dfs_testmode; -@@ -1297,12 +1301,14 @@ ath_vap_create(struct ieee80211com *ic, +@@ -1297,12 +1301,14 @@ ath_vap_create(struct ieee80211com *ic, /* If no default VAP debug flags are passed, allow a few to * transfer down from the driver to new VAPs so we can have load * time debugging for VAPs too. */ @@ -173,16 +173,17 @@ if(strcmp(progname, "athstats") == 0) --- a/tools/Makefile +++ b/tools/Makefile -@@ -48,6 +48,8 @@ endif +@@ -48,14 +48,16 @@ endif all: compile +DEBUG = -DAR_DEBUG + ALLPROGS= athstats 80211stats athkey athchans athctrl \ - athdebug 80211debug wlanconfig ath_info +- athdebug 80211debug wlanconfig ath_info ++ $(if $(DEBUG),athdebug 80211debug) wlanconfig ath_info -@@ -55,7 +57,7 @@ OBJS= $(patsubst %,%.o,$(ALLPROGS)) + OBJS= $(patsubst %,%.o,$(ALLPROGS)) INCS= -I. -I../ath -I$(HAL) -I$(TOP) -I$(ATH_HAL) CFLAGS= -g -O2 -Wall @@ -204,12 +205,14 @@ #include --- a/Makefile.inc +++ b/Makefile.inc -@@ -148,7 +148,8 @@ ATH_RATE= $(TOP)/ath_rate +@@ -147,8 +147,9 @@ ATH_RATE= $(TOP)/ath_rate + # TOOLS= $(TOP)/tools - WARNINGS = -Werror +-WARNINGS = -Werror -COPTS+= $(WARNINGS) -+DEBUG = -DAR_DEBUG -DIEEE80211_DEBUG ++WARNINGS = -Wno-unused ++# DEBUG = -DAR_DEBUG -DIEEE80211_DEBUG +COPTS+= $(WARNINGS) $(DEBUG) INCS= -include $(TOP)/include/compat.h -I$(TOP)/include