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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Apr 2023 12:47:55 +0000 (14:47 +0200)
commitb2bc600cced23762d4e97db8989b18772145604f
tree66d9d453bca17e4772b9a0e9dca0cc9aba1d01dc
parent15d4183425a6282bd673b6cdd198ec9335503e62
wifi: iwlwifi: fix iwl_mvm_max_amsdu_size() for MLO

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>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c