rt2x00: rt2800pci: don't use TXWI_DESC_SIZE directly
authorGabor Juhos <juhosg@openwrt.org>
Sat, 22 Jun 2013 14:31:58 +0000 (16:31 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Jun 2013 18:44:25 +0000 (14:44 -0400)
commita53aff5da60b5c8c4d416f80040e6e7edb7f12df
treed1f502ad7eae103246f725fb29b3a72d1c564d88
parent0a6f3a8ebaf13407523c2c7d575b4ca2debd23ba
rt2x00: rt2800pci: don't use TXWI_DESC_SIZE directly

Different chipsets may use different TXWI descriptor
size. Instead of using a hardcoded value, use the
'queue->winfo_size' which holds the correct value for
a given device.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800pci.c