From: Yair Shapira Date: Tue, 17 Sep 2013 15:41:22 +0000 (+0300) Subject: wlcore: disable elp sleep while in plt mode X-Git-Tag: v3.13-rc1~105^2~225^2~26^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7441ce48156572cb81efe1781aac6c7eb1c5323;p=platform%2Fkernel%2Flinux-exynos.git wlcore: disable elp sleep while in plt mode We now disable elp sleep during plt mode to allow normal operation of plt tools such as calibrator. Having elp_sleep enabled during plt mode is actually not required and in fact it disrupt plt operations such as rx statistics etc. Signed-off-by: Yair Shapira Signed-off-by: Eliad Peller Signed-off-by: Luciano Coelho --- diff --git a/drivers/net/wireless/ti/wlcore/ps.c b/drivers/net/wireless/ti/wlcore/ps.c index 98066d4..26bfc36 100644 --- a/drivers/net/wireless/ti/wlcore/ps.c +++ b/drivers/net/wireless/ti/wlcore/ps.c @@ -83,6 +83,10 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl) struct wl12xx_vif *wlvif; u32 timeout; + /* We do not enter elp sleep in PLT mode */ + if (wl->plt) + return; + if (wl->sleep_auth != WL1271_PSM_ELP) return;