diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-06-15 16:03:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-06 10:23:30 +0200 |
commit | 8903c1ed2c148023c0ff2d03c2a9fa9f763ba401 (patch) | |
tree | de43474433ce5ab6dd64b8c51a036cb6a6f2cb09 /net | |
parent | 962d7207f53be320ef7d48cfa167aef4fdceaf46 (diff) | |
download | linux-stable-8903c1ed2c148023c0ff2d03c2a9fa9f763ba401.tar.gz linux-stable-8903c1ed2c148023c0ff2d03c2a9fa9f763ba401.tar.bz2 linux-stable-8903c1ed2c148023c0ff2d03c2a9fa9f763ba401.zip |
mt76: usb: fix rx A-MSDU support
[ Upstream commit 2a92b08b18553c101115423bd34963b1a59a45a3 ]
Commit f8f527b16db5 ("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: f8f527b16db5 ("mt76: usb: use EP max packet aligned buffer sizes for rx")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions