wifi: iwlwifi: mvm: fix getting lowest TX rate for MLO
authorJohannes Berg <johannes.berg@intel.com>
Sun, 16 Apr 2023 12:47:27 +0000 (15:47 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 17 Apr 2023 07:53:23 +0000 (09:53 +0200)
commit0af637b5719fee09d006e83e1eecd235f7bc62f3
tree0e7ec5475055abf21f29d892f1df2979750cdc0c
parent5af2bb3168db6b0af9988eb25cccf2e3bc4455e2
wifi: iwlwifi: mvm: fix getting lowest TX rate for MLO

In iwl_mvm_mac_ctxt_get_lowest_rate() we were still accessing
vif->bss_conf without any multi-link provisions, and also the
info->band, both of which isn't valid in MLO.

Fix the code to look at the correct link. In case of EAPOL
transmissions for the initial 4-way-HS, look up the correct
link here as well, and warn if multiple are active.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230416154301.d892f68d3bcd.I7d6927abeea5c3899db225391dbc6a5c77805e80@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c