rt2x00: rt2800lib: pass beacon index to rt2800_clear_beacon_register
authorGabor Juhos <juhosg@openwrt.org>
Fri, 16 Aug 2013 22:15:50 +0000 (00:15 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 22 Aug 2013 18:30:26 +0000 (14:30 -0400)
commit77f7c0f3b8f2d464e841c5c35f3da8b4999a885c
treecd959a6f02affc19415505ba06aa375929111964
parent91a3fa39ddf2f85a15cb20ccc3a54c1f0497af1e
rt2x00: rt2800lib: pass beacon index to rt2800_clear_beacon_register

Instead of precomputing the beacon base in
each caller, pass the beacon index to the
'rt2800_clear_beacon_register' function
and compute the beacon base in there.

This allows to simplify the caller functions
a bit.

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