ath9k_hw: Fix opmode initialization
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Wed, 26 Jan 2011 16:29:05 +0000 (21:59 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Jan 2011 20:44:27 +0000 (15:44 -0500)
commit00e0003e0969517c5a447ac3173442dfbdb0613b
treea82f405a2ac1852d50962c01cf349e3b5d03cec6
parent45cbad6a1299842b5ae9a8a9c09630af063692f8
ath9k_hw: Fix opmode initialization

Commit "ath9k_hw: Relocate Opmode initialization"
moved the opmode initialization before the STA_ID1 register
was programmed with defaults. This changed the original
behaviour because the re-programming code doesn't take into
account the existing value in the register. Both ath9k and ath9k_htc
were not affected by this change because the opmode is
re-initialized after every reset, when RX is started.

Revert to the original behavior, except keep it outside the
REGWRITE block. This would help remove extraneous opmode calls
in the driver core.

Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c