aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl12xx.h
diff options
context:
space:
mode:
authorIdo Yariv <ido@wizery.com>2011-06-06 07:57:05 -0400
committerLuciano Coelho <coelho@ti.com>2011-06-27 08:05:15 -0400
commitbaacb9aed020b890ddf6a57837a169092a25fc9b (patch)
treea961d0ce3773f29b419f97715863fea151f3ecf4 /drivers/net/wireless/wl12xx/wl12xx.h
parent842f1a6c71551ac10fbdff4a4e65821228df9ea7 (diff)
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>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl12xx.h')
-rw-r--r--drivers/net/wireless/wl12xx/wl12xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl12xx.h b/drivers/net/wireless/wl12xx/wl12xx.h
index bbf4ee6d4102..754a16ce5bc0 100644
--- a/drivers/net/wireless/wl12xx/wl12xx.h
+++ b/drivers/net/wireless/wl12xx/wl12xx.h
@@ -361,6 +361,7 @@ enum wl12xx_flags {
361 WL1271_FLAG_PENDING_WORK, 361 WL1271_FLAG_PENDING_WORK,
362 WL1271_FLAG_SOFT_GEMINI, 362 WL1271_FLAG_SOFT_GEMINI,
363 WL1271_FLAG_RX_STREAMING_STARTED, 363 WL1271_FLAG_RX_STREAMING_STARTED,
364 WL1271_FLAG_RECOVERY_IN_PROGRESS,
364}; 365};
365 366
366struct wl1271_link { 367struct wl1271_link {
@@ -612,6 +613,7 @@ struct wl1271_station {
612int wl1271_plt_start(struct wl1271 *wl); 613int wl1271_plt_start(struct wl1271 *wl);
613int wl1271_plt_stop(struct wl1271 *wl); 614int wl1271_plt_stop(struct wl1271 *wl);
614int wl1271_recalc_rx_streaming(struct wl1271 *wl); 615int wl1271_recalc_rx_streaming(struct wl1271 *wl);
616void wl12xx_queue_recovery_work(struct wl1271 *wl);
615 617
616#define JOIN_TIMEOUT 5000 /* 5000 milliseconds to join */ 618#define JOIN_TIMEOUT 5000 /* 5000 milliseconds to join */
617 619