From: Johannes Berg Date: Fri, 27 Dec 2024 08:01:06 +0000 (+0200) Subject: wifi: iwlwifi: mvm: restrict MAC start retry to timeouts X-Git-Tag: v6.14-rc1~162^2~20^2~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98b724d9f305d74408c3516279a901a8b054d085;p=thirdparty%2Flinux.git 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: Johannes Berg Signed-off-by: Miri Korenblit Link: https://patch.msgid.link/20241227095718.98201c79f66d.I5d7e12b219d533c6a77741ec5863984d35711f48@changeid Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 3984e589c77dc..cc2f3c0b04a80 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -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);