Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp605910pxb; Tue, 5 Apr 2022 15:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWSJd0/3NZfXCFKQcKd3vFNkO62GvqftgecJElnbLpLRC3ky6lqZ3Gdt1ZFYyUeIYGRR8T X-Received: by 2002:a17:902:da8f:b0:156:9cc4:1b07 with SMTP id j15-20020a170902da8f00b001569cc41b07mr5648719plx.20.1649198658361; Tue, 05 Apr 2022 15:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649198658; cv=none; d=google.com; s=arc-20160816; b=aQBYLCmhi8TxfPz3OqC/n+w/KJn1CpY2zvXlSfSGf/LCAN0ELpWQCwd/WOtw768DBZ YHN2v/BdpSeOjxVeMcqVwL8wftxOIueHdwT7f12lPPQXElsvlugHG9juWGcrMpflDf65 FEKHnr2uooLXlkhcvqOqQsScZKGHP7qCEa1U7lk83aQtbBN4ZA5cybOb63wVsSvLMJhQ LH+xXfQFURG549317EA5AOtzAuzARiQoiiTJQa08t71jbYKC9YErMeR6n4PyTsek95Sg xuqImKnPZIG9GD1/Y+aATMDncNBP6roQCpUxIgR19+4UpMWxkXpj+DnyrvATIAga0jOz bLtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=q5Twp880XJ1tvYdRT4BxAoghgiTZSMoaixCognZvVcY=; b=GwX/oS79OdH9+6ptAfbj/sUe60HUXt90DE/enayeSO6hSuR+e37FAthT8qhuPDJHZR uQqvKdjOg+rqYsprvf+6MbiU82ihDTqm5tsBRPXExQB1yUgTXgKxGHqqKwqdHdq2OXdZ Eqsuq3CK7Do7HNNVZdaNXy5GhuGcXLtfLlDkGNQDcyqwCJ4znQ+qXgylokx+0lLP4y+2 dktChdAMBKhLo81aTsGPah+mk+q7lZYjGv1KAA7wsZ8xvm7onOmOZ9f74UFQyfcuBAeh q29ZnuqA2XMopIzDvAjQy8H4vejnxhzS/kdHm64cEU94xluZa3ZIs8FWZ6Dpb4Qlsuk4 q2OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wXTbrKAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d17-20020a63fd11000000b003862b5dd300si13894585pgh.307.2022.04.05.15.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 15:44:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wXTbrKAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51CEF7806F; Tue, 5 Apr 2022 15:24:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386239AbiDEMkp (ORCPT + 99 others); Tue, 5 Apr 2022 08:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236496AbiDEJDD (ORCPT ); Tue, 5 Apr 2022 05:03:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A34E2D1CC; Tue, 5 Apr 2022 01:54:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AA5AA61476; Tue, 5 Apr 2022 08:54:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8DC4C385A0; Tue, 5 Apr 2022 08:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148885; bh=U2ZJYOuEEz0m9/elS5Kj92JvO3TyzPU4Kk2kEKcCqqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wXTbrKAAfku7vvgMeHu1RTal5gY8bpw9Is9Vozaes80THRtZMhD1/KnbscJ6xToRl mBw4NE+SRzhPd+8dkmezDqCUaEZm8s7ihpzLvCN67gCt0scPUPGaN9V3qTXeVYBMoL Uw10qxlPY/HttRsPOFP4C2LeZTGfZdwHjG9+euB8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luca Coelho , Sasha Levin Subject: [PATCH 5.16 0509/1017] iwlwifi: mvm: dont iterate unadded vifs when handling FW SMPS req Date: Tue, 5 Apr 2022 09:23:42 +0200 Message-Id: <20220405070409.409242075@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luca Coelho [ Upstream commit 8a265d1a619c16400406c9d598411850ee104aed ] 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 Fixes: 2a7ce54ccc23 ("iwlwifi: mvm: honour firmware SMPS requests") Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20220129105618.9416aade2ba0.I0b71142f89e3f158aa058a1dfb2517c8c1fa3726@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- 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 364f6aefae81..5b7d89e33431 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c @@ -237,7 +237,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