From patchwork Tue Aug 27 09:30:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 823520 Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E18CF19D89D for ; Tue, 27 Aug 2024 09:56:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.4.11.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724752591; cv=none; b=mJ4dMYNTxg+zZQcxDdLLlJeZN+5Qs3Oso6aJ/pe21ifTe2qXfIDrqPalO4boQNPriXc2K037R3VGif/59utAxFxB87B7oWZQ7DptWAXJX6B9wEZQhfqyBjnpoAchcr5sm/z99cEoQYH508Kylf4j8cxxvhgU7utYFJ7+u5jE7OQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724752591; c=relaxed/simple; bh=cQL4rXYsolke5A7trY9r5ycovlOf6XlpIP1ny/Z8LjQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eLQK7ZkLlTCJ6WLLOyHPDUfuaPjQll+uvvMAuLf1RlviaW85hvO9D4OFJNC8OorGjK3A4sMJ9pPxNwzlZUenNuENAdn6T0dV2ACzYKcS5BOf75NNUiALSZUALkdhlZ4EfWZ4/dC9uApUgRy4lrbugjJ0q/XaaE8vsRgTD8V/4dU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name; spf=none smtp.mailfrom=nbd.name; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b=hhj1VIKt; arc=none smtp.client-ip=46.4.11.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nbd.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b="hhj1VIKt" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=yzmPUIah3UrweGZo66Xgdfxum/fzqpWKoHTYQZmXXjM=; b=hhj1VIKtL3z7iVISqgEdn5qaGQ 3KnPr6JW3gqOuQa3eyf/t2ydwXHr5wgG3TF5EeFbOnd4LrxyLmzheTMkAIUBoWD7wXWq3AbTgxVWb /p9lhUjxX/NH+OhYp4DAWRcfBqBBiR0kiY3WHYgEbMAbXayz4gRxZJydqeNsY1osXjmo=; Received: from p57a6f9a5.dip0.t-ipconnect.de ([87.166.249.165] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.96) (envelope-from ) id 1sisWo-004Ww8-0A; Tue, 27 Aug 2024 11:30:18 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: Howard Hsu Subject: [PATCH v2 21/24] wifi: mt76: mt7915: fix rx filter setting for bfee functionality Date: Tue, 27 Aug 2024 11:30:08 +0200 Message-ID: <20240827093011.18621-21-nbd@nbd.name> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240827093011.18621-1-nbd@nbd.name> References: <20240827093011.18621-1-nbd@nbd.name> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Howard Hsu Fix rx filter setting to prevent dropping NDPA frames. Without this change, bfee functionality may behave abnormally. Fixes: e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") Signed-off-by: Howard Hsu Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7915/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c index 51885484aab6..db2cf6e11cf3 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c @@ -557,8 +557,7 @@ static void mt7915_configure_filter(struct ieee80211_hw *hw, MT76_FILTER(CONTROL, MT_WF_RFCR_DROP_CTS | MT_WF_RFCR_DROP_RTS | - MT_WF_RFCR_DROP_CTL_RSV | - MT_WF_RFCR_DROP_NDPA); + MT_WF_RFCR_DROP_CTL_RSV); *total_flags = flags; rxfilter = phy->rxfilter;