Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3179941imw; Mon, 11 Jul 2022 03:41:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tGY3mYD76/Ej/yg5stX+1gEW7h6+4en8jeD5nCt+HMq8Imrd+vGeROCz+1m9z+xTs0cXC2 X-Received: by 2002:a17:907:2cd1:b0:72b:4161:16d2 with SMTP id hg17-20020a1709072cd100b0072b416116d2mr9404702ejc.365.1657536091255; Mon, 11 Jul 2022 03:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657536091; cv=none; d=google.com; s=arc-20160816; b=TUC5kI/99B4OAGyvHlbhGqr9yjTU9uFGseV0/yEzXm6sKWj0o5WC7fdDBJRPnWpiP1 sLCrATbi+bWZpJwQlNeaP8vlwc3WotEvipHkp/QGFh+VxW0Z9sr2U9o+3hW9gad1Ry/M /tZlGxNhDVqfYEQxbeyOf+G3QVWfSfUVRV8sMpinyVi8AxM3fNOWbPg8dak6uzxF+ffl r/YM5/NKL8ox0ldEcBcvMdJs5GCZ4hePv1JhnZ8kZeReAqoIGO7oICMIUBLbZ6hLdaGT 0rmFOUhQhNO6WwrVXZ//jhSaCFzgr3w5umCQxsjdnjKV+/l04L86v80uzuyMmd8HheB+ am0w== 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=oz5vz4JlU3nq9sEnViTIrG0XVgiUdxIm6ilKQgIApqc=; b=MaNYMhSspC7Dg8AS48T6vM2frsje36keHy+EuFt+SROK4VKkNaodw4La2Nj1gnQ9wI WQBWD063PUhUa2+z69zr0feLCPZFswcFMQNhHvqFqMvlvPzfZCFRoWPRi1vPIatqPCiv 2Gii+/3KbAJ1fcWUOIOPZPJ9rO+r+wzmX49VvObl3KKi9iEmXQz3Yf+b56+njcb2kcmK TKONjrO0CliLt8EGBIaYy6kHccTwdfCbaZaK/Hk+/dpeSGtf4ux6jJE4Mqg//jSpkrm1 oL072wsqZLJLox1/2DzRj2+DZ5bHqBSgYLg5HjcNMBJPxnmuuEGieeiRyC2nzKygInXK v6Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LEh+7VUG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb8-20020a1709071c8800b00715849159c7si11738140ejc.56.2022.07.11.03.41.06; Mon, 11 Jul 2022 03:41:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LEh+7VUG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233267AbiGKJmt (ORCPT + 99 others); Mon, 11 Jul 2022 05:42:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232557AbiGKJmR (ORCPT ); Mon, 11 Jul 2022 05:42:17 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFF2E9B9D5; Mon, 11 Jul 2022 02:21: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 sin.source.kernel.org (Postfix) with ESMTPS id 269F1CE1256; Mon, 11 Jul 2022 09:21:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E27EC34115; Mon, 11 Jul 2022 09:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657531272; bh=wct9TWBIQK2Q+mh6dK2ze1PHgs5Waxx3OF/u1J/ohq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LEh+7VUG6UDUhIFQZSZuML74eRbmLN3UmWT8pQ1uMF8ZM31geKPHCaB6QhR5ODEeS t7UJHo6BRd1pW5oIOmSpt5SW6W/2nhv8daia/OsJpQxaEH+WG2JucWkTOII5crEtnA Mc8Flac1nIALztNIgjkR5pE5OeXFze5UnpUbcrDo= 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.15 043/230] mt76: mt7921: get rid of mt7921_mac_set_beacon_filter Date: Mon, 11 Jul 2022 11:04:59 +0200 Message-Id: <20220711090605.304966389@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220711090604.055883544@linuxfoundation.org> References: <20220711090604.055883544@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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 b30363102a4122f6eed37927b64a2c7ac70b8859 ] Remove mt7921_mac_set_beacon_filter routine since it is no longer used. Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- .../net/wireless/mediatek/mt76/mt7921/mac.c | 28 ------------------- .../wireless/mediatek/mt76/mt7921/mt7921.h | 3 -- 2 files changed, 31 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c index bef8d4a76ed9..426e7a32bdc8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c @@ -1573,34 +1573,6 @@ void mt7921_pm_power_save_work(struct work_struct *work) queue_delayed_work(dev->mt76.wq, &dev->pm.ps_work, delta); } -int mt7921_mac_set_beacon_filter(struct mt7921_phy *phy, - struct ieee80211_vif *vif, - bool enable) -{ - struct mt7921_dev *dev = phy->dev; - bool ext_phy = phy != &dev->phy; - int err; - - if (!dev->pm.enable) - return -EOPNOTSUPP; - - err = mt7921_mcu_set_bss_pm(dev, vif, enable); - if (err) - return err; - - if (enable) { - vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER; - mt76_set(dev, MT_WF_RFCR(ext_phy), - MT_WF_RFCR_DROP_OTHER_BEACON); - } else { - vif->driver_flags &= ~IEEE80211_VIF_BEACON_FILTER; - mt76_clear(dev, MT_WF_RFCR(ext_phy), - MT_WF_RFCR_DROP_OTHER_BEACON); - } - - return 0; -} - void mt7921_coredump_work(struct work_struct *work) { struct mt7921_dev *dev; diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h b/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h index 2d8bd6bfc820..1aafd8723b3a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h @@ -381,9 +381,6 @@ int mt7921_mcu_fw_pmctrl(struct mt7921_dev *dev); void mt7921_pm_wake_work(struct work_struct *work); void mt7921_pm_power_save_work(struct work_struct *work); bool mt7921_wait_for_mcu_init(struct mt7921_dev *dev); -int mt7921_mac_set_beacon_filter(struct mt7921_phy *phy, - struct ieee80211_vif *vif, - bool enable); void mt7921_pm_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif); void mt7921_coredump_work(struct work_struct *work); int mt7921_wfsys_reset(struct mt7921_dev *dev); -- 2.35.1