Commit aafec111 authored by Arik Nemtsov's avatar Arik Nemtsov Committed by John W. Linville
Browse files

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: default avatarArik Nemtsov <arik@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent fd92dc5d
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -916,9 +916,10 @@ static void wl1271_recovery_work(struct work_struct *work)
	if (wl->state != WL1271_STATE_ON || wl->plt)
		goto out_unlock;

	if (!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags)) {
		wl12xx_read_fwlog_panic(wl);

		wlcore_print_recovery(wl);
	}

	BUG_ON(bug_on_recovery &&
	       !test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags));