Skip to content

Commit

Permalink
wl1271: make sure PS is disabled in PLT
Browse files Browse the repository at this point in the history
We cannot be in PS mode when running PLT tests, so we need to make sure we're
in active mode.  Also, we need to clear up the rx_counter when we stop PLT,
otherwise it could cause problems when entering PLT again.

Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luciano Coelho authored and John W. Linville committed Oct 27, 2009
1 parent ed31778 commit bd5ea18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/wireless/wl12xx/wl1271_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,11 @@ int wl1271_plt_start(struct wl1271 *wl)
if (ret < 0)
goto out_irq_disable;

/* Make sure power saving is disabled */
ret = wl1271_acx_sleep_auth(wl, WL1271_PSM_CAM);
if (ret < 0)
goto out_irq_disable;

goto out;

out_irq_disable:
Expand Down Expand Up @@ -807,6 +812,7 @@ int wl1271_plt_stop(struct wl1271 *wl)
wl1271_power_off(wl);

wl->state = WL1271_STATE_OFF;
wl->rx_counter = 0;

out:
mutex_unlock(&wl->mutex);
Expand Down

0 comments on commit bd5ea18

Please sign in to comment.