ath5k: write beacon control register twice when resetting tsf
commit14be9947ef9843102b67d315c7483de112b5b2d7
authorBob Copeland <me@bobcopeland.com>
Sun, 28 Sep 2008 16:09:43 +0000 (28 12:09 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Sep 2008 18:07:25 +0000 (30 14:07 -0400)
tree1a9637b0dafdcd63b07226ff9aa6ec6d840901ca
parentb0dee5784dff3e2984510a7fe7a7e48109001f94
ath5k: write beacon control register twice when resetting tsf

According to the newly-released Atheros HAL code, asserting the
TSF reset bit will toggle a hardware internal state, resulting in a
spurious reset on the next chip reset.  Whenever we force a TSF bit,
write the bit twice to clear the internal signal.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/pcu.c