Commit 54046431 authored by Luciano Coelho's avatar Luciano Coelho Committed by John W. Linville

wl1271: exit ELP mode when setting enabled rates in tx

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: default avatarTuomas Katila <ext-tuomas.2.katila@nokia.com>
Signed-off-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Tested-by: default avatarTuomas Katila <ext-tuomas.2.katila@nokia.com>
parent 6a2de93b
...@@ -261,6 +261,11 @@ void wl1271_tx_work_locked(struct wl1271 *wl) ...@@ -261,6 +261,11 @@ void wl1271_tx_work_locked(struct wl1271 *wl)
/* if rates have changed, re-configure the rate policy */ /* if rates have changed, re-configure the rate policy */
if (unlikely(sta_rates)) { 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); wl->rate_set = wl1271_tx_enabled_rates_get(wl, sta_rates);
wl1271_acx_rate_policies(wl); wl1271_acx_rate_policies(wl);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment