]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9bcbb7534f6d92c7ebec3dcb1dd1dccb1918072
treecd959a6f02affc19415505ba06aa375929111964
parenta947816e0608c73624e54832ed1ab5f7870bc35c
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