summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarak Bercovitz <barak@wizery.com>2013-09-09 12:24:39 +0300
committerLuciano Coelho <luciano.coelho@intel.com>2013-10-23 09:47:42 +0300
commit5cc14c04c9c8faee3c9fbbfec87bcc9c7ae75b89 (patch)
treec0a66f7f26a9f06cf55871c9dd99fca20747998e
parentc83cb8031bdd7923c7c5ea87accede4a5fc3282a (diff)
downloadop-kernel-dev-5cc14c04c9c8faee3c9fbbfec87bcc9c7ae75b89.zip
op-kernel-dev-5cc14c04c9c8faee3c9fbbfec87bcc9c7ae75b89.tar.gz
wlcore: read fw panic log only in host mode
Reading FW panic log is only supported in host mode (SDIO) Signed-off-by: Barak Bercovitz <barak@wizery.com> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
-rw-r--r--drivers/net/wireless/ti/wlcore/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index a742860..53bb353 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -943,7 +943,8 @@ static void wl1271_recovery_work(struct work_struct *work)
goto out_unlock;
if (!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags)) {
- wl12xx_read_fwlog_panic(wl);
+ if (wl->conf.fwlog.output == WL12XX_FWLOG_OUTPUT_HOST)
+ wl12xx_read_fwlog_panic(wl);
wlcore_print_recovery(wl);
}
OpenPOWER on IntegriCloud