Reallocate the skb if there is no enough space to manage the AMSDU rx packets. Do not always copy the first part of received frames if A-MSDU is enabled for SG capable devices Changes since v2: - simplify mt76u_build_rx_skb - add patch 2/3: mt76u: introduce mt76u_ep data structure - align usb buffer size to usb max endpoint length - set buf_size to PAGE_SIZE even for sg case Changes since v1: - do not allocate multiple page buffers but rely on fragmented skbs if there is no enough space to manage the AMSDU rx packets Lorenzo Bianconi (3): mt76: usb: fix rx A-MSDU support mt76: mt76u: introduce mt76u_ep data structure mt76: usb: do not always copy the first part of received frames drivers/net/wireless/mediatek/mt76/mt76.h | 17 +++-- drivers/net/wireless/mediatek/mt76/usb.c | 75 +++++++++++++++++------ 2 files changed, 67 insertions(+), 25 deletions(-) -- 2.21.0