Skip to content

Instantly share code, notes, and snippets.

@ptantiku
Created October 29, 2017 16:51
Show Gist options
  • Save ptantiku/7fe013bbba798b21e6c8a900cb3a2fb0 to your computer and use it in GitHub Desktop.
Save ptantiku/7fe013bbba798b21e6c8a900cb3a2fb0 to your computer and use it in GitHub Desktop.
@ptantiku
Copy link
Author

ptantiku commented Oct 29, 2017

Disable Debug Mode

modify file os/linux/config.mk

diff --git os/linux/config.mk os/linux/config.mk
index f1a0157..e339c13 100644
--- os/linux/config.mk
+++ os/linux/config.mk
@@ -277,7 +277,7 @@ endif
 # config for STA mode
 
 ifeq ($(RT28xx_MODE),STA)
-WFLAGS += -DCONFIG_STA_SUPPORT -DSCAN_SUPPORT -DDBG
+WFLAGS += -DCONFIG_STA_SUPPORT -DSCAN_SUPPORT
 
 ifeq ($(HAS_HDR_TRANS_SUPPORT),y)
 WFLAGS += -DHDR_TRANS_TX_SUPPORT

and file sta/sta_cfg.c

diff --git sta/sta_cfg.c sta/sta_cfg.c
index 0123732..77d491b 100644
--- sta/sta_cfg.c
+++ sta/sta_cfg.c
@@ -4574,8 +4576,8 @@ INT RTMPQueryInformation(
 }
 
 
-#ifdef DBG
-/* 
+/*#ifdef DBG*/
+/*
     ==========================================================================
     Description:
         Read / Write MAC
@@ -5014,13 +5016,13 @@ LabelOK:
 		os_free_mem(NULL, msg);
 	if (arg != NULL)
 		os_free_mem(NULL, arg);
-	
+
 	DBGPRINT(RT_DEBUG_TRACE, ("<==RTMPIoctlE2PROM\n"));
 	return;
 }
 
 
-#endif /* DBG */
+/*#endif*/ /* DBG */
 
 
 #ifdef RT65xx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment