Skip to content

Commit

Permalink
wl1271: exit ELP mode when setting enabled rates in tx
Browse files Browse the repository at this point in the history
This bug was being triggered by a call to acx_rate_policies in tx_work
without calling ps_elp_wakeup first.  If we have full PSM enabled, this
happens rather often, immediately after association.

Reported-by: Tuomas Katila <ext-tuomas.2.katila@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Tested-by: Tuomas Katila <ext-tuomas.2.katila@nokia.com>
  • Loading branch information
Luciano Coelho authored and John W. Linville committed Nov 15, 2010
1 parent 6a2de93 commit 5404643
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/wl12xx/wl1271_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ void wl1271_tx_work_locked(struct wl1271 *wl)

/* if rates have changed, re-configure the rate policy */
if (unlikely(sta_rates)) {
ret = wl1271_ps_elp_wakeup(wl, false);
if (ret < 0)
goto out;
woken_up = true;

wl->rate_set = wl1271_tx_enabled_rates_get(wl, sta_rates);
wl1271_acx_rate_policies(wl);
}
Expand Down

0 comments on commit 5404643

Please sign in to comment.