projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8450256
)
wl1271: Prevent PSM-entry retry loop if PSM cancelled
author
Juuso Oikarinen
<
[email protected]
>
Mon, 23 Nov 2009 21:22:13 +0000
(23:22 +0200)
committer
John W. Linville
<
[email protected]
>
Sat, 28 Nov 2009 20:04:26 +0000
(15:04 -0500)
Prevent endless PSM-entry retry loops, if PSM has already been cancelled while
PSM entry was attempted.
Signed-off-by: Juuso Oikarinen <
[email protected]
>
Reviewed-by: Luciano Coelho <
[email protected]
>
Signed-off-by: Luciano Coelho <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/wl12xx/wl1271_event.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/wl12xx/wl1271_event.c
b/drivers/net/wireless/wl12xx/wl1271_event.c
index e135d894b42adf6dc1f53fa9d3ebcdd2e2a76cc9..d13fdd99c85c515eea99dd128f8e8b8ecd606a31 100644
(file)
--- a/
drivers/net/wireless/wl12xx/wl1271_event.c
+++ b/
drivers/net/wireless/wl12xx/wl1271_event.c
@@
-78,12
+78,16
@@
static int wl1271_event_ps_report(struct wl1271 *wl,
switch (mbox->ps_status) {
case EVENT_ENTER_POWER_SAVE_FAIL:
+ if (!wl->psm) {
+ wl->psm_entry_retry = 0;
+ break;
+ }
+
if (wl->psm_entry_retry < wl->conf.conn.psm_entry_retries) {
wl->psm_entry_retry++;
- wl1271_error("PSM entry failed, retrying %d\n",
- wl->psm_entry_retry);
ret = wl1271_ps_set_mode(wl, STATION_POWER_SAVE_MODE);
} else {
+ wl1271_error("PSM entry failed, giving up.\n");
wl->psm_entry_retry = 0;
*beacon_loss = true;
}