|
@@ -772,6 +772,8 @@ static void wl1271_fetch_nvs(struct wl1271 *wl)
|
|
|
|
|
|
|
|
void wl12xx_queue_recovery_work(struct wl1271 *wl)
|
|
void wl12xx_queue_recovery_work(struct wl1271 *wl)
|
|
|
{
|
|
{
|
|
|
|
|
+ WARN_ON(!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags));
|
|
|
|
|
+
|
|
|
/* Avoid a recursive recovery */
|
|
/* Avoid a recursive recovery */
|
|
|
if (!test_and_set_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags)) {
|
|
if (!test_and_set_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags)) {
|
|
|
wlcore_disable_interrupts_nosync(wl);
|
|
wlcore_disable_interrupts_nosync(wl);
|