aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-06-25 15:26:19 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-10 12:10:13 -0400
commitaafec111dd2b74f2ec0f55f0c79144f6558d9205 (patch)
treecdf5108e7a7c0492dd7254c45a34dcdb56e7ca51 /drivers/net/wireless/ti
parentfd92dc5d5daf0637507cff78a6fbfaf099597007 (diff)
wlcore: avoid debug prints during intended FW recovery
Don't read the FW panic log or print other debug data when recovery is intended (i.e. FW type switch). This takes valuable time and can be confusing to the user. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r--drivers/net/wireless/ti/wlcore/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index 7abb02ad1b37..c5b8c5cadae6 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -916,9 +916,10 @@ static void wl1271_recovery_work(struct work_struct *work)
916 if (wl->state != WL1271_STATE_ON || wl->plt) 916 if (wl->state != WL1271_STATE_ON || wl->plt)
917 goto out_unlock; 917 goto out_unlock;
918 918
919 wl12xx_read_fwlog_panic(wl); 919 if (!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags)) {
920 920 wl12xx_read_fwlog_panic(wl);
921 wlcore_print_recovery(wl); 921 wlcore_print_recovery(wl);
922 }
922 923
923 BUG_ON(bug_on_recovery && 924 BUG_ON(bug_on_recovery &&
924 !test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags)); 925 !test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags));