Skip to content

Commit

Permalink
wlcore: enter elp in force ps mode in 5ms
Browse files Browse the repository at this point in the history
It is requiered to enter sleep mode with smaller delay in forced PS mode.
This fixes issue of testing force PS mode during VoIP traffic where packets
are sent every 20ms. Chip never enters ps mode with default 30 ms delay
in such test.

Signed-off-by: Igal Chernobelsky <igalc@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Igal Chernobelsky authored and Luciano Coelho committed Mar 25, 2013
1 parent 42af657 commit 0c7cc7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/ti/wlcore/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#define WL1271_WAKEUP_TIMEOUT 500

#define ELP_ENTRY_DELAY 30
#define ELP_ENTRY_DELAY_FORCE_PS 5

void wl1271_elp_work(struct work_struct *work)
{
Expand Down Expand Up @@ -98,7 +99,8 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl)
return;
}

timeout = ELP_ENTRY_DELAY;
timeout = wl->conf.conn.forced_ps ?
ELP_ENTRY_DELAY_FORCE_PS : ELP_ENTRY_DELAY;
ieee80211_queue_delayed_work(wl->hw, &wl->elp_work,
msecs_to_jiffies(timeout));
}
Expand Down

0 comments on commit 0c7cc7f

Please sign in to comment.