diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-02-12 14:42:39 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-02-18 19:55:52 +0100 |
commit | 63a7de5dfbfd4d3d96b0e7420d69ff8ac9b4d51a (patch) | |
tree | 1b751f8b7b40982a0793eee0ef5a55efb31282b0 /drivers/net/wireless/mediatek/mt76/mt76x0/usb.c | |
parent | b3098121c42caaf3aea239b8655cf52d45be116f (diff) | |
download | blackbird-op-linux-63a7de5dfbfd4d3d96b0e7420d69ff8ac9b4d51a.tar.gz blackbird-op-linux-63a7de5dfbfd4d3d96b0e7420d69ff8ac9b4d51a.zip |
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 <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x0/usb.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x0/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/usb.c b/drivers/net/wireless/mediatek/mt76/mt76x0/usb.c index 2f259bc0ad9e..da9d05f6074d 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/usb.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/usb.c @@ -206,7 +206,7 @@ static int mt76x0u_register_device(struct mt76x02_dev *dev) goto out_err; /* 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; |