wl12xx: Avoid recovery while one is already in progress
During recovery work commands sent to the FW could fail and schedule additional recovery work. Since the chip is going to be powered off, avoid recursive recoveries. Signed-off-by: Ido Yariv <ido@wizery.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
This commit is contained in:
committed by
Luciano Coelho
parent
842f1a6c71
commit
baacb9aed0
@@ -306,7 +306,7 @@ static ssize_t start_recovery_write(struct file *file,
|
||||
struct wl1271 *wl = file->private_data;
|
||||
|
||||
mutex_lock(&wl->mutex);
|
||||
ieee80211_queue_work(wl->hw, &wl->recovery_work);
|
||||
wl12xx_queue_recovery_work(wl);
|
||||
mutex_unlock(&wl->mutex);
|
||||
|
||||
return count;
|
||||
|
Reference in New Issue
Block a user