Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp196185rdf; Thu, 2 Nov 2023 19:09:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgjhik8yLWctdl+FItWc5Pb7EDtcZgO2eUC7Ox93S6DtZAY29VZBDoOIoS+6H0AW8Tr64t X-Received: by 2002:a17:902:ea0a:b0:1cc:4a83:d839 with SMTP id s10-20020a170902ea0a00b001cc4a83d839mr1928499plg.17.1698977391533; Thu, 02 Nov 2023 19:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698977391; cv=none; d=google.com; s=arc-20160816; b=KxYv4kbtW3zHnVIqBgO20/gEDxXvK0/bIe3fvqdifE2sOkTf+MJFLZe5yNf6DEQPJ2 MPzfI/KyIPYAmLIFNEHp9uz3ZP17y5++77ig22YMZpA/h/znb6yBijKMYgo8VdgC5xt0 DhpFxMHzxcxC0nbAmZ7zzZily+Uz8WsuWVBGnR59DGomdscctIvcHiTMtVNAHsxWVwfC DQp3bWR+0F0CK5rdpOqC9c/JsHVS6NVCkbEHq26gcc+oRif2GE9GuSa0KehCcprhOb8l opw7yYzTAX/5OaIkGAzY00yR4cAdhH2dnXKYYcsNP9a8N14H8Xl3xqrghUe/8DdZjsp8 /W3w== 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 :message-id:date:subject:cc:to:from; bh=9t7Khg1pVEV08qxZYkTeeZbXE5QVpeMFuEpCf1G686I=; fh=KViOThWj7I/0roMjMBG5c60+/+58d859QI/+bburqog=; b=zsdD3LXup8Ueg9eemjK9AX0oCeJEEyqOcXFbjlkOa/L1m1DuflnNj9Ak/TLFGTg98n 3Vmc/OqzeEbyG7FE0WY4Ygnu2sFio/UL1wJYnM/VxTMLQHHeit2LJCAHeBtKsZKXd6gS nOBg/ft2FsXvBe7GS82GD/Tg2TRdZsitR1WhAKijYqlI/iZxuCaj3qRyamDxMrIvcrnh R2V3TFf8C8AEHXBqf/GU3ZUcFOlPOlXWdO0P/l29BUqUtK6iyYWD8yZtUYc32jLwD352 RIFKe/EkkCfMi/sSGcpnk1rFL0Vk9th8Dsptfvzbq312HtQDugBnEcJf3bmH+fTcoZvt /aDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c3-20020a170902d48300b001c7345bc007si656449plg.486.2023.11.02.19.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 19:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4C85680253BF; Thu, 2 Nov 2023 19:09:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229749AbjKCCJq (ORCPT + 52 others); Thu, 2 Nov 2023 22:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbjKCCJq (ORCPT ); Thu, 2 Nov 2023 22:09:46 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1EB919F for ; Thu, 2 Nov 2023 19:09:38 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3A329RAC03743057, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3A329RAC03743057 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 Nov 2023 10:09:27 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Fri, 3 Nov 2023 10:09:27 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 3 Nov 2023 10:09:27 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH] wifi: rtw88: fix RX filter in FIF_ALLMULTI flag Date: Fri, 3 Nov 2023 10:08:51 +0800 Message-ID: <20231103020851.102238-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.94] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: license violation X-KSE-Antivirus-Attachment-Filter-Interceptor-Info: license violation X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 02 Nov 2023 19:09:46 -0700 (PDT) From: Chih-Kang Chang The broadcast packets will be filtered in the FIF_ALLMULTI flag in the original code, which causes beacon packets to be filtered out and disconnection. Therefore, we fix it. Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver") Signed-off-by: Chih-Kang Chang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw88/mac80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c index a99b53d44267..d8d68f16014e 100644 --- a/drivers/net/wireless/realtek/rtw88/mac80211.c +++ b/drivers/net/wireless/realtek/rtw88/mac80211.c @@ -280,9 +280,9 @@ static void rtw_ops_configure_filter(struct ieee80211_hw *hw, if (changed_flags & FIF_ALLMULTI) { if (*new_flags & FIF_ALLMULTI) - rtwdev->hal.rcr |= BIT_AM | BIT_AB; + rtwdev->hal.rcr |= BIT_AM; else - rtwdev->hal.rcr &= ~(BIT_AM | BIT_AB); + rtwdev->hal.rcr &= ~(BIT_AM); } if (changed_flags & FIF_FCSFAIL) { if (*new_flags & FIF_FCSFAIL) -- 2.25.1