rt2x00: rt2800lib: use step-by-step frequency offset adjustment on MMIO devices
commit8d38eca8e089179b6858ca5f3ea03f571a5892a5
authorGabor Juhos <juhosg@openwrt.org>
Sat, 17 Aug 2013 12:09:31 +0000 (17 14:09 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 22 Aug 2013 18:30:27 +0000 (22 14:30 -0400)
treed576235fbbd902e358e8e04cef773154600124e3
parent76773f301f2210dcc20c466aebda7118062673eb
rt2x00: rt2800lib: use step-by-step frequency offset adjustment on MMIO devices

According to the DPO_RT5572_LinuxSTA_2.6.0.1_20120629
driver, the RFCSR17 register can't be programmed in
one step on devices which are using the frequency
offset adjustment code.

Update the code to use step-by-step adjustment.

Reference:
  RT30xxWriteRFRegister function in common/rt_rf.c

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c