diff options
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/main.c')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/main.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c index bb69a5949aea..85bca557a339 100644 --- a/drivers/net/wireless/ath/wil6210/main.c +++ b/drivers/net/wireless/ath/wil6210/main.c | |||
@@ -330,18 +330,19 @@ static void wil_fw_error_worker(struct work_struct *work) | |||
330 | 330 | ||
331 | wil->last_fw_recovery = jiffies; | 331 | wil->last_fw_recovery = jiffies; |
332 | 332 | ||
333 | wil_info(wil, "fw error recovery requested (try %d)...\n", | ||
334 | wil->recovery_count); | ||
335 | if (!no_fw_recovery) | ||
336 | wil->recovery_state = fw_recovery_running; | ||
337 | if (wil_wait_for_recovery(wil) != 0) | ||
338 | return; | ||
339 | |||
333 | mutex_lock(&wil->mutex); | 340 | mutex_lock(&wil->mutex); |
334 | switch (wdev->iftype) { | 341 | switch (wdev->iftype) { |
335 | case NL80211_IFTYPE_STATION: | 342 | case NL80211_IFTYPE_STATION: |
336 | case NL80211_IFTYPE_P2P_CLIENT: | 343 | case NL80211_IFTYPE_P2P_CLIENT: |
337 | case NL80211_IFTYPE_MONITOR: | 344 | case NL80211_IFTYPE_MONITOR: |
338 | wil_info(wil, "fw error recovery requested (try %d)...\n", | 345 | /* silent recovery, upper layers will see disconnect */ |
339 | wil->recovery_count); | ||
340 | if (!no_fw_recovery) | ||
341 | wil->recovery_state = fw_recovery_running; | ||
342 | if (0 != wil_wait_for_recovery(wil)) | ||
343 | break; | ||
344 | |||
345 | __wil_down(wil); | 346 | __wil_down(wil); |
346 | __wil_up(wil); | 347 | __wil_up(wil); |
347 | break; | 348 | break; |