]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: iwlwifi: fix iwl_mvm_max_amsdu_size() for MLO
authorJohannes Berg <johannes.berg@intel.com>
Mon, 17 Apr 2023 08:41:30 +0000 (11:41 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 9 Aug 2023 09:37:57 +0000 (11:37 +0200)
commit7023c7d7f159e4458785a28855c391fd52745a14
tree158769634ffa42fec4825f49c7f547439257cb75
parent10cf1e05a148d0c24145371a0c207f3164c8e0d3
wifi: iwlwifi: fix iwl_mvm_max_amsdu_size() for MLO

BugLink: https://bugs.launchpad.net/bugs/2028808
[ Upstream commit b2bc600cced23762d4e97db8989b18772145604f ]

For MLO, we cannot use vif->bss_conf.chandef.chan->band, since
that will lead to a NULL-ptr dereference as bss_conf isn't used.
However, in case of real MLO, we also need to take both LMACs
into account if they exist, since the station might be active
on both LMACs at the same time.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230417113648.3588afc85d79.I11592893bbc191b9548518b8bd782de568a9f848@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c