mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
mt76: mt7663s: remove max_tx_fragments limitation
Remove A-MSDU max_tx_fragments constraint for sdio since the check is already performed in mt7663s_tx_run_queue routine Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
1820388bcc
commit
b9b852b9ac
1 changed files with 7 additions and 6 deletions
|
@ -365,14 +365,15 @@ int mt7663_usb_sdio_register_device(struct mt7615_dev *dev)
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
/* check hw sg support in order to enable AMSDU */
|
||||
if (dev->mt76.usb.sg_en || mt76_is_sdio(&dev->mt76))
|
||||
hw->max_tx_fragments = MT_HW_TXP_MAX_BUF_NUM;
|
||||
else
|
||||
hw->max_tx_fragments = 1;
|
||||
hw->extra_tx_headroom += MT_USB_TXD_SIZE;
|
||||
if (mt76_is_usb(&dev->mt76))
|
||||
if (mt76_is_usb(&dev->mt76)) {
|
||||
hw->extra_tx_headroom += MT_USB_HDR_SIZE;
|
||||
/* check hw sg support in order to enable AMSDU */
|
||||
if (dev->mt76.usb.sg_en)
|
||||
hw->max_tx_fragments = MT_HW_TXP_MAX_BUF_NUM;
|
||||
else
|
||||
hw->max_tx_fragments = 1;
|
||||
}
|
||||
|
||||
err = mt76_register_device(&dev->mt76, true, mt7615_rates,
|
||||
ARRAY_SIZE(mt7615_rates));
|
||||
|
|
Loading…
Add table
Reference in a new issue