Commit 98b724d9 authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: iwlwifi: mvm: restrict MAC start retry to timeouts



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: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241227095718.98201c79f66d.I5d7e12b219d533c6a77741ec5863984d35711f48@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 29ce03e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);