All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Coelho <luca@coelho.fi>
To: kvalo@kernel.org
Cc: luca@coelho.fi, linux-wireless@vger.kernel.org
Subject: [PATCH 05/12] iwlwifi: mvm: don't iterate unadded vifs when handling FW SMPS req
Date: Sat, 29 Jan 2022 13:16:15 +0200	[thread overview]
Message-ID: <iwlwifi.20220129105618.9416aade2ba0.I0b71142f89e3f158aa058a1dfb2517c8c1fa3726@changeid> (raw)
In-Reply-To: <20220129111622.678447-1-luca@coelho.fi>

From: Luca Coelho <luciano.coelho@intel.com>

We may not have all the interfaces added to the driver when we get the
THERMAL_DUAL_CHAIN_REQUEST notification from the FW, so instead of
iterating all vifs to update SMPS, iterate only the ones that are
already assigned.  The interfaces that were not assigned yet, will be
updated accordingly when we start using them.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Fixes: 2a7ce54ccc23 ("iwlwifi: mvm: honour firmware SMPS requests")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index ba19ed30f85a..86dd2dc1a8ab 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -235,7 +235,8 @@ static void iwl_mvm_rx_thermal_dual_chain_req(struct iwl_mvm *mvm,
 	 */
 	mvm->fw_static_smps_request =
 		req->event == cpu_to_le32(THERMAL_DUAL_CHAIN_REQ_DISABLE);
-	ieee80211_iterate_interfaces(mvm->hw, IEEE80211_IFACE_ITER_NORMAL,
+	ieee80211_iterate_interfaces(mvm->hw,
+				     IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER,
 				     iwl_mvm_intf_dual_chain_req, NULL);
 }
 
-- 
2.34.1


  parent reply	other threads:[~2022-01-29 11:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-29 11:16 [PATCH 00/12] iwlwifi: updates intended for v5.18 2022-01-29 Luca Coelho
2022-01-29 11:16 ` [PATCH 01/12] iwlwifi: dbg: add infra for tracking free buffer size Luca Coelho
2022-01-29 11:16 ` [PATCH 02/12] iwlwifi: yoyo: fix DBGI_SRAM ini dump header Luca Coelho
2022-01-29 11:16 ` [PATCH 03/12] iwlwifi: mvm: only enable HE DCM if we also support TX Luca Coelho
2022-01-29 11:16 ` [PATCH 04/12] iwlwifi: advertise support for HE - DCM BPSK RX/TX Luca Coelho
2022-01-29 11:16 ` Luca Coelho [this message]
2022-01-29 11:16 ` [PATCH 06/12] iwlwifi: mvm: align locking in D3 test debugfs Luca Coelho
2022-01-29 11:16 ` [PATCH 07/12] iwlwifi: pcie: add support for MS devices Luca Coelho
2022-01-29 11:16 ` [PATCH 08/12] iwlwifi: yoyo: fix DBGC allocation flow Luca Coelho
2022-01-29 11:16 ` [PATCH 09/12] iwlwifi: yoyo: add IMR DRAM dump support Luca Coelho
2022-01-29 11:16 ` [PATCH 10/12] iwlwifi: mvm: support v3 of station HE context command Luca Coelho
2022-01-29 11:16 ` [PATCH 11/12] iwlwifi: yoyo: remove DBGI_SRAM address reset writing Luca Coelho
2022-01-29 11:16 ` [PATCH 12/12] iwlwifi: mvm: add support for CT-KILL notification version 2 Luca Coelho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iwlwifi.20220129105618.9416aade2ba0.I0b71142f89e3f158aa058a1dfb2517c8c1fa3726@changeid \
    --to=luca@coelho.fi \
    --cc=kvalo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.