mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
wifi: iwlwifi: mld: avoid init-after-queue
rx_omi::finished_work is initialized when the containing link is. If the worker was queued and then an error happened, we will get to iwl_mld_init_link from the reconfig and initialize the work after it was queued. Reviewed-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20250506194102.3407967-11-miriam.rachel.korenblit@intel.com Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
This commit is contained in:
parent
2d81aefc59
commit
1437d6c4f2
|
|
@ -785,8 +785,9 @@ iwl_mld_init_link(struct iwl_mld *mld, struct ieee80211_bss_conf *link,
|
|||
iwl_mld_init_internal_sta(&mld_link->aux_sta);
|
||||
iwl_mld_init_internal_sta(&mld_link->mon_sta);
|
||||
|
||||
wiphy_delayed_work_init(&mld_link->rx_omi.finished_work,
|
||||
iwl_mld_omi_bw_finished_work);
|
||||
if (!mld->fw_status.in_hw_restart)
|
||||
wiphy_delayed_work_init(&mld_link->rx_omi.finished_work,
|
||||
iwl_mld_omi_bw_finished_work);
|
||||
|
||||
return iwl_mld_allocate_link_fw_id(mld, &mld_link->fw_id, link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user