mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
mac80211: avoid changing skb truesize in A-MSDU aggregation
Should fix recently reported data corruption issues Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
745d0e7f4b
commit
e062bd8563
@ -46,15 +46,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
if (!ieee80211_amsdu_prepare_head(sdata, fast_tx, head))
|
||||
goto out;
|
||||
@@ -3241,6 +3243,7 @@ static bool ieee80211_amsdu_aggregate(st
|
||||
|
||||
head->len += skb->len;
|
||||
head->data_len += skb->len;
|
||||
+ head->truesize += skb->truesize;
|
||||
*frag_tail = skb;
|
||||
|
||||
flow->backlog += head->len - orig_len;
|
||||
@@ -3249,6 +3252,9 @@ static bool ieee80211_amsdu_aggregate(st
|
||||
@@ -3249,6 +3251,9 @@ static bool ieee80211_amsdu_aggregate(st
|
||||
fq_recalc_backlog(fq, tin, flow);
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user