提交 1ab0f212 编写于 作者: E Eliad Peller 提交者: Luciano Coelho

wlcore: use the original elp time in forced_ps mode

The dynamic PS timeout is meaningless in forced PS mode.
Signed-off-by: NEliad Peller <eliad@wizery.com>
Signed-off-by: NArik Nemtsov <arik@wizery.com>
Signed-off-by: NLuciano Coelho <coelho@ti.com>
上级 d35dc739
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#define WL1271_WAKEUP_TIMEOUT 500 #define WL1271_WAKEUP_TIMEOUT 500
#define ELP_ENTRY_DELAY 5
void wl1271_elp_work(struct work_struct *work) void wl1271_elp_work(struct work_struct *work)
{ {
struct delayed_work *dwork; struct delayed_work *dwork;
...@@ -72,6 +74,7 @@ void wl1271_elp_work(struct work_struct *work) ...@@ -72,6 +74,7 @@ void wl1271_elp_work(struct work_struct *work)
void wl1271_ps_elp_sleep(struct wl1271 *wl) void wl1271_ps_elp_sleep(struct wl1271 *wl)
{ {
struct wl12xx_vif *wlvif; struct wl12xx_vif *wlvif;
u32 timeout;
if (wl->quirks & WLCORE_QUIRK_NO_ELP) if (wl->quirks & WLCORE_QUIRK_NO_ELP)
return; return;
...@@ -89,8 +92,13 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl) ...@@ -89,8 +92,13 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl)
return; return;
} }
if (wl->conf.conn.forced_ps)
timeout = ELP_ENTRY_DELAY;
else
timeout = wl->conf.conn.dynamic_ps_timeout;
ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, ieee80211_queue_delayed_work(wl->hw, &wl->elp_work,
msecs_to_jiffies(wl->conf.conn.dynamic_ps_timeout)); msecs_to_jiffies(timeout));
} }
int wl1271_ps_elp_wakeup(struct wl1271 *wl) int wl1271_ps_elp_wakeup(struct wl1271 *wl)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册