]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: iwlwifi: mvm: really send iwl_txpower_constraints_cmd
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 10 Oct 2024 11:05:01 +0000 (14:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Oct 2024 15:53:26 +0000 (17:53 +0200)
commitcbe84e9ad5e28ef083beff7f6edf2e623fac09e4
treeaaf34db607b751d9add4d7f5494a42610152b26b
parent3ed092997a004d68a3a5b0eeb94e71b69839d0f7
wifi: iwlwifi: mvm: really send iwl_txpower_constraints_cmd

iwl_mvm_send_ap_tx_power_constraint_cmd is a no-op if the link is not
active (we need to know the band etc.)
However, for the station case it will be called just before we set the
link to active (by calling iwl_mvm_link_changed with
the LINK_CONTEXT_MODIFY_ACTIVE bit set in the 'changed' flags and
active = true), so it will end up doing nothing.

Fix this by calling iwl_mvm_send_ap_tx_power_constraint_cmd before
iwl_mvm_link_changed.

Fixes: 6b82f4e119d1 ("wifi: iwlwifi: mvm: handle TPE advertised by AP")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241010140328.5c235fccd3f1.I2d40dea21e5547eba458565edcb4c354d094d82a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c