mac80211: Reset dynamic ps timer in Rx path.
authorVivek Natarajan <vnatarajan@atheros.com>
Mon, 8 Feb 2010 12:17:01 +0000 (17:47 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Feb 2010 21:51:03 +0000 (16:51 -0500)
commite15276a4b220c54db665cf46a92bd9ceb9aeb052
tree084ec601adeb65532f6c3a6b52cf1dc728065235
parent209c671db7a917740ab9873d442b10ae7e369937
mac80211: Reset dynamic ps timer in Rx path.

The current mac80211 implementation enables power save if there
is no Tx traffic for a specific timeout. Hence, PS is triggered
even if there is a continuous Rx only traffic(like UDP) going on.
This makes the drivers to wait on the tim bit in the next beacon
to awake which leads to redundant sleep-wake cycles.
Fix this by restarting the dynamic ps timer on receiving every
data packet.

Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
CC: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c