Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1555093pxb; Fri, 20 Aug 2021 08:14:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfHvxZFEMGSX6lMNruDLJY4g4rWi6NOawjC+1mAbdhE+7Sawz6/t8r5NCKZkhRJeIdeiyl X-Received: by 2002:a17:906:704e:: with SMTP id r14mr22222893ejj.293.1629472471384; Fri, 20 Aug 2021 08:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629472471; cv=none; d=google.com; s=arc-20160816; b=X2DBLDZeMQDIuR2d9nZKOXOLHWBzvct8PJn7XpBrEOTBCU6XG0sT/6RidhB3vdtq0Y YAzAAS+h7VNFI1CmRZ5FEFM3GxDd/rbkOz2y10LZfuc7uVUPkiDh7NeIAhXcM18HUEbN 9c1HdHw+myzFnzbINM1CKGvtHR64mNlRKKIKl2VaVp74UzZXS5/MqGWMcCWJLYnpbjNd 0YRniHRN2KYGm4ttA0khdMxWjWdA31mGy1haOFMbdqOWY2zMi3DF+1Xlsqw110cM0YFj 5dILfenimk5N5L7rMDQB8lbRD6kWgI5ZaUMopqxtysOTzMhfnadYHhHUz+Ml22U4TvLx SBxQ== 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:to:subject:dkim-signature:dkim-filter; bh=QvxwyxWNrZFXXVLDATLDbpHfu5pxLKyJrZhbnthKUNI=; b=RJZX5ljkzPqvTMHK7Bh2vb2V+ShjuqsBOS8wn+t+GpK9RtkXUtmlnBlOHWosE87LZV lKgX4KLgTwTFy/1Nuk366+iCbX8jfxlUXs7e1BrjJsCR5Z67vTjyxCyQAUtoM4WG18rm LRza2TddTiY4Fik5ZoLv6GZgNaHGeZYJw1ON2Qsl96cHxHuTPhUFhV888riKCINhFSic rpgsiR43mY8JHFdR8choaJmWvqy0BGBiEToI78qE5noJD5y+sT5yzPnodwfwLGURmLNw slG87ru4VERpJdjnxO+ZOxVK4+6qA1b+p49RUyPG6DGoflc0ASH3FOmKdLKlugJCY4f2 MZXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=UWRHkvfK; 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 i18si8876474edc.271.2021.08.20.08.13.49; Fri, 20 Aug 2021 08:14:31 -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=UWRHkvfK; 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 S240956AbhHTPJh (ORCPT + 99 others); Fri, 20 Aug 2021 11:09:37 -0400 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.184]:55278 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240830AbhHTPJg (ORCPT ); Fri, 20 Aug 2021 11:09:36 -0400 X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.51.178]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 33C111A006C; Fri, 20 Aug 2021 15:08:57 +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 EC510B00017; Fri, 20 Aug 2021 15:08:56 +0000 (UTC) Received: from [192.168.254.6] (unknown [50.34.183.227]) (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 AA9D813C2B1; Fri, 20 Aug 2021 08:08:55 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com AA9D813C2B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1629472136; bh=4IYuTzG8CyRKnbhBsPfmXxh3KG2A7Xh9Jhn2VvBrPJQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=UWRHkvfKTzINRmDaGERq4jRurmFOWyBc6Qx3xlUYmKOiBzo6hGPBc1/AeVRE+YGqO cTMqtn0IKMcdUZjxm3l7EdOfzzu2bj48dfiXcpCqlasg5h6rDA9zs2jv9F6KpWPHt7 DNpaqAtdvbCIOrKH2bmqlwvNZBgTa07fo/qNDs6g= Subject: Re: question on HE debugfs output To: Johannes Berg , "linux-wireless@vger.kernel.org" References: <578da3a0-f029-4e60-d4e6-34d42def62e8@candelatech.com> <2c55dce18c94d778207b3fc452a09e14ee80c032.camel@sipsolutions.net> From: Ben Greear Organization: Candela Technologies Message-ID: Date: Fri, 20 Aug 2021 08:08:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <2c55dce18c94d778207b3fc452a09e14ee80c032.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit X-MDID: 1629472137-LfiB1ebh1LNv Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 8/20/21 2:17 AM, Johannes Berg wrote: > Hi Ben, > >> While poking around in things, I noticed that the >> he_capa debugfs is not showing the least-common-denominator, but rather >> more specifically the peer's capabilities. >> >> This could be bugs in how I'm using this, but thought I'd ask to >> see if this was on purpose or not. > > It was on purpose. Also, for HE it's different from HT/VHT in that we > don't do this in the stack any more. > > I'm not really sure _why_ now (or if we should change it), but I seem to > remember it was just a lot more complex to do in general, but drivers > didn't really care so much since they tend to have a lot of hard-coded > assumptions, e.g. they might not care about seeing 2, 3 or more streams > supported if their code assumes the device always only supports 2 in the > first place, so all they need is a >= 2 check in this case, for example. > > If you wanted to change that, I wouldn't mind, but it might be complex. Ok, for now it is a curiosity. While hacking on things (to disable 160Mhz support so that a station can be forced to 80Mhz when radio supports 160), I ended up writing code to take the station HE capabilities from the driver and then modify them. Other code in mac80211 is already sort of doing this here and there. So, maybe that is a way to start consolidating the 'overrides' logic to build a more proper HE capab in mac80211... Thanks, Ben > > johannes > -- Ben Greear Candela Technologies Inc http://www.candelatech.com