Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2287051iof; Wed, 8 Jun 2022 01:28:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy5IpSnuZyFPWw4iHfAc0/oxehLOH/ipnXD6Tstfq+IuvVBl/aPAiX9hhV6KfhDba5jMgl X-Received: by 2002:a05:6a00:338e:b0:51b:c452:4210 with SMTP id cm14-20020a056a00338e00b0051bc4524210mr32765346pfb.69.1654676921582; Wed, 08 Jun 2022 01:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654676921; cv=none; d=google.com; s=arc-20160816; b=UX602I4KPH7r77H9MhIKgTt1ABQXUCeWIeIvm9Y66WD4G8bSPwTUV2htQ77cOM05M3 Nb9kZ9n5wtcgMYB0jYtHXJmvX6Ljh3SD7zSGwQYJq3x9CsJLpLlNi7K3QDGcq/8x0StM ZSzbXvNPUZtVnRz9Lv5ebbqGXQQJ8JvdoxQnm8zLNyaYSbyWerW7QZtLpvsPM7OSK7Up SkknX05hkzK9Nw8ID4KlEywmYVPU0dxw+S9lsVPPZipIY4zvAR/0hV4XarptsaruxHZH zkngYvpBHegS9cxfyxvx+ytXCktAgCG8avQ+mUKtq6D/yx5bNG2/ZIDyyiuPR7oAP28Q hgvw== 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=jhNEUK3OqMamex4hei3YUY0gh/T8yDFpYMWtgv7a4gg=; b=JTcEFP+3yaJsnbquJmW8eDXjjvz8GIOQbaLseQviESn2y6tjOGMudSLeCYGQlqsiRw 77FjKX4NEKx+7wDkQ3AJ1/IOv8wBBx6mWw009cc3luAOIJkZGqQpkxacVsrSQXb6Mn2I 7H/Ah6a0sJKRgX0EMazEUpkfJ8Y6VhEO2xRivERG2hZmzgTjQVeO+seVdCEq219C2VES gVuoFbd2h6203rFHH2rODdSh/DjZrkTj571OOPwMyizvShnblhv0PjBuA7I2q3XMiWzD /syvM+yDX1bseLaW9S5HvTTnza1sXzk0zO2ht/1qkx4of2HoH5jg7p4uPz4ospVX+g/O ZfuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VHbetf2S; 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 p3-20020a170902f08300b0015f1388045csi23287793pla.156.2022.06.08.01.28.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:28:41 -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=VHbetf2S; 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 A7C6E22C8AB; Wed, 8 Jun 2022 00:57:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385958AbiFGWra (ORCPT + 99 others); Tue, 7 Jun 2022 18:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380521AbiFGViO (ORCPT ); Tue, 7 Jun 2022 17:38:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A2DE23146E; Tue, 7 Jun 2022 12:05:17 -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 ams.source.kernel.org (Postfix) with ESMTPS id C9BD0B822C0; Tue, 7 Jun 2022 19:05:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 454E1C385A2; Tue, 7 Jun 2022 19:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628714; bh=Ia8YhthTXwo6lCDBIdkcLlJtmZlqWo/5RO+MA5OekTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VHbetf2SgL18cj1HMeyEr2V+WMW80yVoRLdODGYPb00yLwLYz8rrAh2w0ogBc5Hk5 rYCG9+EehQVZMG6JALNwZ1rKbJw3D1m9tew/xCdGUjQO18BxchfMkIoIOnU49i9uG/ LxLi2rT591qZV9Utuk4j0U0jaNaWp+WHXqJCH5h8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lorenzo Bianconi , Felix Fietkau , Sasha Levin Subject: [PATCH 5.18 430/879] mt76: mt7921: honor pm user configuration in mt7921_sniffer_interface_iter Date: Tue, 7 Jun 2022 18:59:08 +0200 Message-Id: <20220607165015.350066658@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 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=unavailable 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: Lorenzo Bianconi [ Upstream commit 47eea8ad62a1203ce20b365f7feba23fef62a487 ] Honor runtime-pm user configuration in mt7921_sniffer_interface_iter routine if we do not have a monitor interface. Fixes: 1f12fa34e5dc5 ("mt76: mt7921: don't enable beacon filter when IEEE80211_CONF_CHANGE_MONITOR is set") Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/net/wireless/mediatek/mt76/mt7921/main.c index fdaf2451bc1d..11472aaf1440 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c @@ -489,8 +489,8 @@ mt7921_sniffer_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif) bool monitor = !!(hw->conf.flags & IEEE80211_CONF_MONITOR); mt7921_mcu_set_sniffer(dev, vif, monitor); - pm->enable = !monitor; - pm->ds_enable = !monitor; + pm->enable = pm->enable_user && !monitor; + pm->ds_enable = pm->ds_enable_user && !monitor; mt76_connac_mcu_set_deep_sleep(&dev->mt76, pm->ds_enable); -- 2.35.1