Johannes Berg ebda7f6fe9 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>
2023-11-20 11:56:46 +01:00
..
2023-05-31 13:06:57 +02:00
2023-10-19 23:11:05 +02:00
2023-11-02 09:36:52 +01:00
2023-03-16 17:34:40 -07:00
2023-06-24 15:41:46 -07:00
2023-09-13 09:53:12 +02:00
2023-06-28 16:43:10 -07:00
2023-06-28 16:43:10 -07:00