]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - wl12xx/wl12xx.git/commitdiff
wl12xx: Fix continuous and on-demand fwlog modes R5.xx_Build-10 R5.xx_Build-11 R5.xx_Build-12 R5.xx_Build-13 R5.xx_Build-14 R5.xx_Build-15 R5.xx_Build-16 R5.xx_Build-57 R5.xx_Build-58 R5.xx_Build-6 R5.xx_Build-7 R5.xx_Build-8 R5.xx_Build-9
authorIdo Yariv <ido@wizery.com>
Wed, 15 Aug 2012 14:51:01 +0000 (17:51 +0300)
committerArik Nemtsov <arik@wizery.com>
Wed, 15 Aug 2012 15:13:43 +0000 (18:13 +0300)
Commit 4d7944cc ("wl12xx: set default FW log mode to dbg-pins") set the
default debug output to debug pins. However, when either continuous or
on-demand fwlog modes are set, the debug output is not overridden
accordingly. Fix this.

Signed-off-by: Ido Yariv <ido@wizery.com>
drivers/net/wireless/wl12xx/main.c

index 072d80e5222e724db51f3a45a74cc87c093f3cdf..80686b699251343dd342e03cfb7991dc3136e323 100644 (file)
@@ -735,8 +735,10 @@ static void wl1271_conf_init(struct wl1271 *wl)
        if (fwlog_param) {
                if (!strcmp(fwlog_param, "continuous")) {
                        wl->conf.fwlog.mode = WL12XX_FWLOG_CONTINUOUS;
+                       wl->conf.fwlog.output = WL12XX_FWLOG_OUTPUT_HOST;
                } else if (!strcmp(fwlog_param, "ondemand")) {
                        wl->conf.fwlog.mode = WL12XX_FWLOG_ON_DEMAND;
+                       wl->conf.fwlog.output = WL12XX_FWLOG_OUTPUT_HOST;
                } else if (!strcmp(fwlog_param, "dbgpins")) {
                        wl->conf.fwlog.mode = WL12XX_FWLOG_CONTINUOUS;
                        wl->conf.fwlog.output = WL12XX_FWLOG_OUTPUT_DBG_PINS;