Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E76BCC64EC4 for ; Fri, 10 Mar 2023 00:50:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbjCJAuf (ORCPT ); Thu, 9 Mar 2023 19:50:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjCJAue (ORCPT ); Thu, 9 Mar 2023 19:50:34 -0500 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EF92125B5 for ; Thu, 9 Mar 2023 16:50:32 -0800 (PST) X-Virus-Scanned: Proofpoint Essentials engine Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id B66FEAC007F; Fri, 10 Mar 2023 00:50:29 +0000 (UTC) Received: from [192.168.100.159] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id E9B5213C2B0; Thu, 9 Mar 2023 16:50:28 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com E9B5213C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1678409429; bh=EJVz+TdW6NbIT299nfmymNsW/oWJlLvv8nx9PWrZf5o=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IHYTV6jHESZccrd7gdQoaK0DYMFw/Cr8XtLPj8b0gyBT6dJJ5kwmHLp+tUQ1dda4v +jFE16DHevvR1Zr738s1dStf9LuB7vRu8PwHqWY3YkUtgNXHOwwl0YFwVFOw1DTOzK kPU+49zzlEOLcF2UIhbCA1y9f0J+i0/b0fadi6yo= Message-ID: <79728d21-400d-d294-f48e-a2ee091869bf@candelatech.com> Date: Thu, 9 Mar 2023 16:50:28 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v2] wifi: mt76: mt7921: use driver flags rather than mac80211 flags to mcu Content-Language: en-US To: Deren Wu , Felix Fietkau , Lorenzo Bianconi Cc: Sean Wang , Soul Huang , YN Chen , Leon Yen , Eric-SY Chang , KM Lin , Robin Chiu , CH Yeh , Posh Sun , Stella Chang , Evelyn Tsai , Ryder Lee , Shayne Chen , linux-wireless , linux-mediatek References: <0c2eed5226aef8e7e219c748b9d20cb234cf9f8f.1678186986.git.deren.wu@mediatek.com> From: Ben Greear Organization: Candela Technologies In-Reply-To: <0c2eed5226aef8e7e219c748b9d20cb234cf9f8f.1678186986.git.deren.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MDID: 1678409431-Xzc1GRKUxN6I X-MDID-O: us5;ut7;1678409431;Xzc1GRKUxN6I; Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 3/7/23 03:22, Deren Wu wrote: > From: Neil Chen > > FIF_* flags from mac80211 is not ABI. mt7921 should not pass it into mcu > directly. Remap FIF_* to driver defined flags as mcu command input. > > Fixes: c222f77fd421 ("wifi: mt76: mt7921: fix rx filter incorrect by drv/fw inconsistent") > Signed-off-by: Neil Chen > Signed-off-by: Deren Wu I tried this plus the patch it is fixing on 6.2.2+ kernel with 7922 radios, and behaviour seems worse than before the two patches were applied. Original problem I was trying to fix is that my STAs will connect fine on 5Ghz, but then when I try to move them to 2.4Ghz, most will not scan anything. Packet sniff shows probe responses and requests, so I suspected firmware is filtering when it should not. With the two patches applied, even 5Ghz is showing failure, with lots of beacon loss messages (I am disabling beacon filtering, which previously worked fine on 7921 nic in 5.19 kernel). Are there other patches that I should consider to get 7922 to work better in 6.2.2+ kernel? [root@ct523c-3b7f ~]# cat /debug/ieee80211/wiphy0/mt76/version chipset: 7922 ASIC-Revision: 0x79220010 hw_sw_ver: 0x8a108a10 build_date: 20221227123154a bus: 0000:04:00.0 fwcfg: fwcfg-mmio-0000:04:00.0.txt WM-hw_sw_ver: ____000000 WM-build_date: 20221227123243 WA-hw_sw_ver: WA-build_date: Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com