mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: usb: move mt76u_check_sg in usb.c
Move mt76u_check_sg routine in usb.c and introduce sg_en variable in mt76_usb in order to check if scatter-gather is supported by mt76u layer Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
a5cfe9635f
commit
1e4db14016
+1
-1
@@ -228,7 +228,7 @@ int mt76x2u_register_device(struct mt76x02_dev *dev)
|
||||
goto fail;
|
||||
|
||||
/* check hw sg support in order to enable AMSDU */
|
||||
if (mt76u_check_sg(&dev->mt76))
|
||||
if (dev->mt76.usb.sg_en)
|
||||
hw->max_tx_fragments = MT_SG_MAX_SIZE;
|
||||
else
|
||||
hw->max_tx_fragments = 1;
|
||||
|
||||
Reference in New Issue
Block a user