• Lorenzo Bianconi's avatar
    mt76: usb: fix rx A-MSDU support · 2a92b08b
    Lorenzo Bianconi authored
    Commit f8f527b1 ("mt76: usb: use EP max packet aligned buffer sizes
    for rx") breaks A-MSDU support. When A-MSDU is enable the device can
    receive frames up to q->buf_size but they will be discarded in
    mt76u_process_rx_entry since there is no enough room for
    skb_shared_info. Fix the issue reallocating the skb and copying in the
    linear area the first 128B of the received frames and in the frag_list
    the remaining part
    
    Fixes: f8f527b1 ("mt76: usb: use EP max packet aligned buffer sizes for rx")
    Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    2a92b08b
mt76.h 20.4 KB