summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwmc3200wifi
diff options
context:
space:
mode:
authorBenoit Papillault <benoit.papillault@free.fr>2010-04-16 00:07:26 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 21:46:54 +0200
commit1c0fc65e6de4e941ff483df445e721d6edb1f84b (patch)
tree817e2d467d656b845b649f5ec883fbf100bc4b1e /drivers/net/wireless/iwmc3200wifi
parentath9k_hw: add the PCI ID for the first AR9300 device (diff)
downloadlinux-1c0fc65e6de4e941ff483df445e721d6edb1f84b.tar.xz
linux-1c0fc65e6de4e941ff483df445e721d6edb1f84b.zip
ath5k/ath9k: Fix 64 bits TSF reads
According to tests, both TSF lower and upper registers kept counting, so the higher part could have been updated after the lower part has been read, as shown in the following log where the upper part is read first and the lower part next. tsf = {00000003-fffffffd} tsf = {00000003-00000001} tsf = {00000004-0000000b} This patch corrects this by checking that the upper part has not been changed while the lower part was read. It has been tested in an IBSS network where artifical IBSS merges have been done in order to trigger hundreds of rollover for the TSF lower part. It follows the logic mentionned by Derek, with only 2 register reads needed at each additional steps instead of 3 (the minimum number of register reads is still 3). Signed-off-by: Benoit Papillault <benoit.papillault@free.fr> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi')
0 files changed, 0 insertions, 0 deletions