]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: dynamic PS - don't enter PS when TX frames are pending
authorArik Nemtsov <arik@wizery.com>
Sun, 26 Jun 2011 09:06:54 +0000 (12:06 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jun 2011 19:09:42 +0000 (15:09 -0400)
commit23adca5491acfe65da462ee6c98c507ad2354edc
tree95816e9126dac6a5e0ebb999066bb4f781138b36
parentf669ef6c5b59fe0ebda866f75f81b05282f299b5
mac80211: dynamic PS - don't enter PS when TX frames are pending

Use the tx_frames_pending() driver callback to determine if Tx frames are
pending for its internal queues. If so postpone the dynamic PS timeout
to avoid interrupting Tx traffic.

The commit ff71bee1502a531189f8746ca74c0de0ea06f06f enabled this
behavior for drivers with IEEE80211_HW_PS_NULLFUNC_STACK. We enable this
for all drivers supporting dynamic PS.

This patch helps improve performance in noisy environments.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c