rt2x00: move extra_tx_headroom field from rt2x00_ops to rt2x00_dev
The extra_tx_headroom field of struct rt2x00_ops indicates the extra TX headroom size required for a given device. This data is redundant, the value can be computed from the desc_size and winfo_size fields of the TX queues. Move the extra_tx_headroom field to struct rt2x00_dev, compute its value in the probe routine and use the cached value in the rest of the code. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
d619c62f16
commit
5616a6efb2
@@ -3066,7 +3066,6 @@ static const struct rt2x00_ops rt61pci_ops = {
|
||||
.eeprom_size = EEPROM_SIZE,
|
||||
.rf_size = RF_SIZE,
|
||||
.tx_queues = NUM_TX_QUEUES,
|
||||
.extra_tx_headroom = 0,
|
||||
.queue_init = rt61pci_queue_init,
|
||||
.lib = &rt61pci_rt2x00_ops,
|
||||
.hw = &rt61pci_mac80211_ops,
|
||||
|
Reference in New Issue
Block a user