]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: rt2800lib: introduce rt2800_get_txwi_rxwi_size helper
authorGabor Juhos <juhosg@openwrt.org>
Fri, 16 Aug 2013 08:23:29 +0000 (10:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Aug 2013 18:17:50 +0000 (14:17 -0400)
commit1c37b1a2da449c18fb00eed8b288df26487405b1
treea54e5e5035e4604f28706c7151b46a84d1acd37b
parente10f6d7aabe10562023714636b96e7188265d529
rt2x00: rt2800lib: introduce rt2800_get_txwi_rxwi_size helper

The rt2800pci driver uses the same [RT]XWI size
for all chipsets, however some chips requires
different values.

The size of the [RT]XWI structures is a constant
value for a given chipset and it does not depend
on the underlying interface. Add a helper function
which returns the correct values for the actual
chipset and use the new helper both in the rt2800usb
and in the rt2800pci drivers. This ensures that both
drivers are using the correct values.

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