Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp825819pxb; Wed, 6 Apr 2022 00:55:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0CRAYdYdZcBYkQzDtRYFz+jn+i3nrq5tJBS4pA7Um6oFLpbI5gsQyZMlKRAZB9drH8tto X-Received: by 2002:a17:902:e743:b0:153:a902:8d8c with SMTP id p3-20020a170902e74300b00153a9028d8cmr7291605plf.150.1649231732930; Wed, 06 Apr 2022 00:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649231732; cv=none; d=google.com; s=arc-20160816; b=r8lpb92Aybumq5ZMj4LO8yc9muzhjv0oeOGLQCNuQYgkw8ZFdufCVWIX0zelYMyF+K paKt/HykuY2tE31h+xmJRkv5jSjNIgLC+SO3yMlhzYOXzaiZBK+eQmnsOrvc5+djRF7O 2rPev+XYyBueCSf7rBHx8g+IhKnTv/v4aG4XYc1A9m6Eo30pZNrfe7pggqtXxVTmo5X/ UaBS++UT6FXIvHRuT80e2PiCNMV8VmcsaobQdnBp2XI62PyVs9SZx1eWJIEOsPHrIyPK 8LdLHu6exeb1xGCNQzyUfuOAJN7cagcu6QIzKvqpWVjkrl9QC791bm+bzGZ6vRiPAbix Ccmw== 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=/C+F+sUeDRRS0l5LQIkg3WcMSWT5o+H0dgQZujLno4s=; b=L2WT0Qhtvq8rnOEA7SKI9ZgBGxeB1RsUUJISOpaAsP6Q8RuJ+bStZODUG9fRrPgIQs +Gq0/ODVCVAkwaeTOmKYY7qBVGB8lqyzrTEjpDOZEsHSsTTiND/4sXzpWjUTU3QXvNNB r+0H8gUan0skXdb52YlNBsDdaNa/MMohguFFcZ+SMfih/Jo2T1VAbMrhrDVpjSB+RFQh kEkEcYPq8Zd/dqO2jDrD2QOvbIj0+vUpwszzn2evVjd3uBx+shl0dfz/jp1q/t+nP7I8 djO1mCyTOrEA/zwMfA+hS3VzY/L22WKo9qU27M1lK2/YpwJoITYTqeaONKkFr25kB6Pr ShLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mefo5UDr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id k24-20020a170902ba9800b00153b2d164f4si9357437pls.252.2022.04.06.00.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 00:55:32 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mefo5UDr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 SMTP id 8C2EB528D0E; Wed, 6 Apr 2022 00:29:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1584306AbiDEX6L (ORCPT + 99 others); Tue, 5 Apr 2022 19:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349058AbiDEJtD (ORCPT ); Tue, 5 Apr 2022 05:49:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3885FA94EF; Tue, 5 Apr 2022 02:39:28 -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 C7E0F61368; Tue, 5 Apr 2022 09:39:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3836C385A2; Tue, 5 Apr 2022 09:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151567; bh=SWnPec7Zwl4H05NnprqEXu/B97MmpNcASNuRbqfMQ4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mefo5UDr2Hm/jxAgwct6SEWgmEddaJf7uqU3/DjDAHjZXB+EwVCWlWRj6iZeNgqV6 6WLnT0w9hR+E2bXFjaqIamSEzduAJwZpOIubX0sEPB9jJKM/p70yurHbKHUtlHuM31 NUsaLYkTj1jd0J1hjeBDAVFUCbN2shTeSZ1TnH3c= 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.15 463/913] iwlwifi: mvm: dont iterate unadded vifs when handling FW SMPS req Date: Tue, 5 Apr 2022 09:25:25 +0200 Message-Id: <20220405070353.727258366@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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 49c32a8132a0..c77d98c88811 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c @@ -238,7 +238,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