The AR6k firmware maintains a log of debugging events that are retrieved by the host on various occasions, including driver removal. Retrieval of this data is very slow and seems to have little value.
This patch adds a new configuration option CONFIG_AR6000_WLAN_DEBUG to enable retrieval of the debugging log. This option is turned off by default. Signed-off-by: Werner Almesberger <[email protected]> --- Index: ktrack/drivers/ar6000/Kconfig =================================================================== --- ktrack.orig/drivers/ar6000/Kconfig 2009-01-19 16:21:14.000000000 -0200 +++ ktrack/drivers/ar6000/Kconfig 2009-01-19 16:33:24.000000000 -0200 @@ -5,3 +5,14 @@ default m help good luck. + +config AR6000_WLAN_DEBUG + bool "Enable retrieval of firmware debugging information" + depends on AR6000_WLAN + default n + help + The AR6k firmware maintains a log of debugging events that + gets flushed to the host on various occasions. Retrieval of + this data is very slow, taking several seconds. + + If in doubt, say N. Index: ktrack/drivers/ar6000/ar6000/ar6000_drv.c =================================================================== --- ktrack.orig/drivers/ar6000/ar6000/ar6000_drv.c 2009-01-19 16:21:14.000000000 -0200 +++ ktrack/drivers/ar6000/ar6000/ar6000_drv.c 2009-01-19 16:34:04.000000000 -0200 @@ -402,6 +402,9 @@ if (!ar->dbglog_init_done) return A_ERROR; +#ifndef CONFIG_AR6000_WLAN_DEBUG + return 0; +#endif AR6000_SPIN_LOCK(&ar->arLock, 0);
