Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1851898pxb; Thu, 7 Oct 2021 17:00:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF5BOhXENx2Eu0MOXYlQ2Nd33N7BAQjCD4J9BXl/BrWR7WpRmJUD0ZSiYeUO5a5jj59ZDU X-Received: by 2002:a05:6402:3128:: with SMTP id dd8mr10077492edb.383.1633651238131; Thu, 07 Oct 2021 17:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633651238; cv=none; d=google.com; s=arc-20160816; b=GagqDj7y2moPKAEPpT5ZIanNiaSAv1Ub8jRuRP/Rv+WvFagtzg7qkDJ+6LwHL+Y5U2 hu9agXPVtdOOoowZXfB5BPqR+ZhFFqsVWB0td/hdHq452MtkOQapRPGVL/a3NNzNLk6g CwWekj0NJ1MgyP/sLlIlUwt/eDeiF9wWg69fwEr7TvaQOUye7V9ARIZQIS0vfqHAacMx EFXZyaF+4HpkLgT0JsENbcUfzTRpNZ1GjjV3w9NGBc03muwXiZ73PibotGrlBcDx5wDD J/2yE9xZKYUPoY2HU/4qsBKbWPWe1jMz3VSyYKJvNToYnuNc08a/1MnLPwvVpnr0Cjhk I7/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature:dkim-filter; bh=FF+jGUsVqb2Tk8szClzBQUAhuilHoKrj4iGiSdhv5Zo=; b=PPLJtm1hO3jWvdP6jgk6ZEVbMTC/RtNgaECZHq6WkUvoEfrcmS2TCtbqDx3S+rmF5a tePvK8EZiSj92wboLX+Q6gjm9/sCXqA+0WntiGk2zrqRFeLHZEd67ovD+iOWps2EBptv jzsvLADmHS8+xXs4pM/rNNYTrfX7UAq/M+36yWBm4d8Ra0ecmm3BYSHWyMbJnInNsRRL kytoMSfbifGBOXT1xnJtTIXRsnFueTnPYPkeCF5jZSqhHdJUqvx5kVw5H99aGyCztn/Q Q4+1uC86ArCBaaxV5KEMtzuBa/F/Fj6cDUD8UwtKEIP9IxpthNFHyTMw+Ti5g3M4zTpq TcuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=iM9hpCjH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lb12si1155241ejc.254.2021.10.07.17.00.17; Thu, 07 Oct 2021 17:00:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=iM9hpCjH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234151AbhJGX6G (ORCPT + 76 others); Thu, 7 Oct 2021 19:58:06 -0400 Received: from dispatch1-us1.ppe-hosted.com ([148.163.129.52]:34324 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233133AbhJGX6F (ORCPT ); Thu, 7 Oct 2021 19:58:05 -0400 X-Greylist: delayed 327 seconds by postgrey-1.27 at vger.kernel.org; Thu, 07 Oct 2021 19:58:05 EDT Received: from dispatch1-us1.ppe-hosted.com (localhost.localdomain [127.0.0.1]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id D8F2125C6A for ; Thu, 7 Oct 2021 23:50:44 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.7.67.131]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 87C8A2005E; Thu, 7 Oct 2021 23:50:43 +0000 (UTC) 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 1038E980068; Thu, 7 Oct 2021 23:50:42 +0000 (UTC) Received: from [192.168.100.195] (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 47EA913C2B0; Thu, 7 Oct 2021 16:50:42 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 47EA913C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1633650642; bh=T6vwDbx+pV/hvMObb7NO5tmpk+mAlu0GxmSe7c+x770=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=iM9hpCjHp60OvIAgXA+5DhDX29oHTVCVya2oVGpoDLbaWs/jaypqjtvU2utVG+lzD Y+aO0wz9Sg4JsPf4UbgZdtyH4EsKlczxrsViRovmHZPBzZofI0S48gvc9EpDgXW84P HYKVPBoyAGT21G4Lyxdp1RkdWugLj0HkxPr2lWzI= Subject: Re: [PATCH v5 1/8] mt76: mt7915: introduce mt7915_mcu_beacon_check_caps() To: Shayne Chen , Felix Fietkau Cc: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek References: <20211001095355.10598-1-shayne.chen@mediatek.com> From: Ben Greear Organization: Candela Technologies Message-ID: Date: Thu, 7 Oct 2021 16:50:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20211001095355.10598-1-shayne.chen@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-MDID: 1633650644-XrS8nWtV6ccy Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 10/1/21 2:53 AM, Shayne Chen wrote: > From: Ryder Lee > > Beacon elements might be changed by hostapd configuraion, so driver > should compare both IEs and PHY capabilities to get the least common > denominator before association. > > Co-developed-by: Evelyn Tsai > Signed-off-by: Evelyn Tsai > Signed-off-by: Ryder Lee > Signed-off-by: Shayne Chen > --- > v2: modify condition for mimo_dl_en > v5: rebase to staging tree Have you tested this in station mode? I tried merging this into my tree and it broke station mode. Symptom was that it associated, but could not get DHCP. It worked if I disabled AX mode and made it associate as 11ac. I think root cause is probably that the beacon is never set in STA mode, but the code building the MCU messages are unconditionally looking at the values derived from the beacon caps when making decisions about bfer/bfee and ldpc and such. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com