mt76: usb: use max packet length for m76u_copy
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 29 Nov 2019 12:32:26 +0000 (13:32 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:01 +0000 (10:06 +0100)
commita6bfb6d13f3325fd5cc3646f558b67c40ea823d0
tree66517fab84783b33d7574c6c12a69f18dfd8ff7e
parentd3cc4e7640cabb0100630093a0d07c266ea08c42
mt76: usb: use max packet length for m76u_copy

For transferring data over USB the optimal size is endpoint maxpacket.
For my hardware maxpaket for control endpoint is 64 bytes and changing
to this value from 128 bytes further shorten TBTT work time from
3ms to 1ms.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/usb.c