]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix beacon skew in rt2800pci
authorHelmut Schaa <helmut.schaa@googlemail.com>
Fri, 9 Mar 2012 14:31:50 +0000 (15:31 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Mar 2012 18:21:49 +0000 (14:21 -0400)
commit0531f64246069bffa1a9c9af94583f842d428eb2
treefcca74bae4b2431424bcb49f5d57bf01fa1bad13
parenta81aee17f11c8a634ff4f21006f347a6410c8e5a
rt2x00: Fix beacon skew in rt2800pci

rt2800pci is suffering from beacon skew in AP mode. Some powersaving
clients (like VOIP phones) are getting into trouble after some time
when the beacon skew is getting too big.

The ralink legacy drivers contain a function that indicates that the
beacon timer is off by 1us per tbtt. And this function works around
that by reducing the beacon interval for every 64th beacon transmission
by 64us (the smallest possible value). Do the same in rt2800pci.

This allows proper powersaving when rt2800pci is used in AP mode.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800.h
drivers/net/wireless/rt2x00/rt2800pci.c