]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: mvm: restrict MAC start retry to timeouts
authorJohannes Berg <johannes.berg@intel.com>
Fri, 27 Dec 2024 08:01:06 +0000 (10:01 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:26:38 +0000 (15:26 +0100)
We had reverted the retry loop removal because of an issue
with PNVM loading, but that issue manifests as timeouts.
Since the retries aren't needed in other cases, only do
them when there were timeouts while starting, not other
errors.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241227095718.98201c79f66d.I5d7e12b219d533c6a77741ec5863984d35711f48@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

index 3984e589c77dc3f4dff5d17885242b8dc2f764f9..cc2f3c0b04a8094de89573186413f629b2031b7a 100644 (file)
@@ -1311,7 +1311,7 @@ int iwl_mvm_mac_start(struct ieee80211_hw *hw)
 
        for (retry = 0; retry <= max_retry; retry++) {
                ret = __iwl_mvm_mac_start(mvm);
-               if (!ret)
+               if (ret != -ETIMEDOUT)
                        break;
 
                IWL_ERR(mvm, "mac start retry %d\n", retry);