]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix extending the rx timestamp with the hardware TSF
authorFelix Fietkau <nbd@openwrt.org>
Sat, 12 Jun 2010 04:33:54 +0000 (00:33 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jun 2010 19:39:31 +0000 (15:39 -0400)
commit1627a6f37609422e92f1aceb081d2fb3d787adef
treeec2014019e26fc19be90c81c13373cbe1f7afe09
parentf2b8a494d68f1b10c9a5c4ef9a1afdb91ecc636f
ath9k: fix extending the rx timestamp with the hardware TSF

AR5416 and all newer chipsets use a 32 bit rx timestamp, so there
is no need to keep the 15 bit timestamp extending logic around.

This patch removes ath9k_hw_extend_tsf (replaced by a call to
ath9k_hw_gettsf64), and reduces the frequency of TSF reads, which
can improve performance in some cases.

This change also has the side effect of making rx timestamps
more accurate.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/recv.c