wil6210: use wil_fw_error_recovery()
authorVladimir Kondratiev <QCA_vkondrat@QCA.qualcomm.com>
Thu, 30 Jul 2015 10:51:54 +0000 (13:51 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 6 Aug 2015 06:42:45 +0000 (09:42 +0300)
Use function wil_fw_error_recovery() instead of inline equivalent code

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/main.c

index ae0df3588e5d1d51e18dd47734a2e875c6bf705a..c77ae1739afc57ee4cc126aa4c3450277cfa1ac2 100644 (file)
@@ -271,8 +271,7 @@ static void wil_scan_timer_fn(ulong x)
 
        clear_bit(wil_status_fwready, wil->status);
        wil_err(wil, "Scan timeout detected, start fw error recovery\n");
-       wil->recovery_state = fw_recovery_pending;
-       schedule_work(&wil->fw_error_worker);
+       wil_fw_error_recovery(wil);
 }
 
 static int wil_wait_for_recovery(struct wil6210_priv *wil)