]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
wifi: iwlwifi: mvm: don't initialize csa_work twice
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 12 May 2024 12:25:00 +0000 (15:25 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 May 2024 13:26:05 +0000 (15:26 +0200)
The initialization of this worker moved to iwl_mvm_mac_init_mvmvif
but we removed only from the pre-MLD version of the add_interface
callback. Remove it also from the MLD version.

Fixes: 0bcc2155983e ("wifi: iwlwifi: mvm: init vif works only once")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://msgid.link/20240512152312.4f15b41604f0.Iec912158e5a706175531d3736d77d25adf02fba4@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c

index 0a3b7284eeddf9f382752e7d12a88da6a0b0d654..fcfd2dd7568e502633b7a0c4cee5808bec0e7024 100644 (file)
@@ -75,8 +75,6 @@ static int iwl_mvm_mld_mac_add_interface(struct ieee80211_hw *hw,
                goto out_free_bf;
 
        iwl_mvm_tcm_add_vif(mvm, vif);
-       INIT_DELAYED_WORK(&mvmvif->csa_work,
-                         iwl_mvm_channel_switch_disconnect_wk);
 
        if (vif->type == NL80211_IFTYPE_MONITOR) {
                mvm->monitor_on = true;