]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix insufficient headroom issue for AMSDU
authorChih-Kang Chang <gary.chang@realtek.com>
Mon, 16 Aug 2021 08:51:28 +0000 (16:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:35 +0000 (09:47 +0200)
commit6160b40adbe9a687fd78e25ffb4b6c3db2ef9478
treecfbd992ff089e0112d717a91a91ed638a2edd1b5
parentcba1df928714e646b024f10249692342d064463d
mac80211: Fix insufficient headroom issue for AMSDU

[ Upstream commit f50d2ff8f016b79a2ff4acd5943a1eda40c545d4 ]

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: 51928b7f40f2 ("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>
net/mac80211/tx.c