Skip to content

Commit 22b106d

Browse files
Chih-Kang Changgregkh
authored andcommitted
mac80211: Fix insufficient headroom issue for AMSDU
[ Upstream commit f50d2ff ] ieee80211_amsdu_realloc_pad() fails to account for extra_tx_headroom, the original reserved headroom might be eaten. Add the necessary extra_tx_headroom. Fixes: 6e0456b ("mac80211: add A-MSDU tx support") Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://lore.kernel.org/r/20210816085128.10931-2-pkshih@realtek.com [fix indentation] Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0ad4ddb commit 22b106d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎net/mac80211/tx.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3229,7 +3229,9 @@ static bool ieee80211_amsdu_prepare_head(struct ieee80211_sub_if_data *sdata,
32293229
if (info->control.flags & IEEE80211_TX_CTRL_AMSDU)
32303230
return true;
32313231

3232-
if (!ieee80211_amsdu_realloc_pad(local, skb, sizeof(*amsdu_hdr)))
3232+
if (!ieee80211_amsdu_realloc_pad(local, skb,
3233+
sizeof(*amsdu_hdr) +
3234+
local->hw.extra_tx_headroom))
32333235
return false;
32343236

32353237
data = skb_push(skb, sizeof(*amsdu_hdr));

0 commit comments

Comments
 (0)