]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: fix # of MSDU in A-MSDU calculation
authorJohannes Berg <johannes.berg@intel.com>
Sun, 27 Aug 2023 11:05:28 +0000 (14:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:56:46 +0000 (11:56 +0100)
commitebda7f6fe90af9f6b09faa7fa709c7a2e5855d43
treef81090dfb044c4078b8c07dc801e113b3f3a7cd8
parentfc658d36928dd260c545ec0d2666aea1fd97f983
wifi: mac80211: fix # of MSDU in A-MSDU calculation

[ Upstream commit 428e8976a15f849ad92b1c1e38dda2a684350ff7 ]

During my refactoring I wanted to get rid of the switch,
but replaced it with the wrong calculation. Fix that.

Fixes: 175ad2ec89fe ("wifi: mac80211: limit A-MSDU subframes for client too")
Reported-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230827135854.51bf1b8b0adb.Iffbd337fdad2b86ae12f5a39c69fb82b517f7486@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/sta_info.c