Browse Source

wil6210: fix recovery after scan timeout

Scan timeout treated as indication for firmware error;
and should be handled in the same way.

Recovery state machine does not perform as designed because
its state is not updated in case of scan timeout.

Fix is to set recovery state machine into the proper state.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Vladimir Kondratiev 10 years ago
parent
commit
60abbb6ee6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/wireless/ath/wil6210/main.c

+ 1 - 0
drivers/net/wireless/ath/wil6210/main.c

@@ -220,6 +220,7 @@ static void wil_scan_timer_fn(ulong x)
 
 
 	clear_bit(wil_status_fwready, &wil->status);
 	clear_bit(wil_status_fwready, &wil->status);
 	wil_err(wil, "Scan timeout detected, start fw error recovery\n");
 	wil_err(wil, "Scan timeout detected, start fw error recovery\n");
+	wil->recovery_state = fw_recovery_pending;
 	schedule_work(&wil->fw_error_worker);
 	schedule_work(&wil->fw_error_worker);
 }
 }