wifi: iwlwifi: mld: don't return an error if the FW is dead
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 30 Apr 2025 12:23:17 +0000 (15:23 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 6 May 2025 17:23:10 +0000 (20:23 +0300)
commitf5f6b9d9a4959d19fefb4c48ef66de25571f22c3
treee91854a73fc29d8748ad4bc9e86a95d7ba1ab7fd
parentf9151f16e140b9c43f076579146679408af6f442
wifi: iwlwifi: mld: don't return an error if the FW is dead

If iwl_mld_change_vif_links failed to add the requested link(s)
because the FW is dead (error before recovery), there is no point
in returning an error value, as the reconfig will re-add the link(s)
after the FW is started.
Return 0 in that case, and WARN in the others.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20250430151952.c549c72b1f37.I445bf723e9befc9541b4abd0ec7c72db8f1ff177@changeid
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c