Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp268062rwl; Wed, 9 Aug 2023 14:21:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPJ4peE1GOGVkfl0ydJFS96V+3zvEgExZFEL9qRpIA9wZdEYPFe2xiqeApgcQttpGvjpcT X-Received: by 2002:a05:6a20:1613:b0:134:149e:7b74 with SMTP id l19-20020a056a20161300b00134149e7b74mr422053pzj.61.1691616074659; Wed, 09 Aug 2023 14:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691616074; cv=none; d=google.com; s=arc-20160816; b=iPHCszVfBKPPUt89FFoL1j9+FgDk4U3DwYHDfWYk2f7hBFeJTBnvBR7AwVMsanw8d/ 6Z62FnR4lV/fcsfCOoSQOh8esLShe3F4SDH/qG+9WthNnKSp5gwUZghcKxdxOg9zFfwR MaUvqWIJfJ/tWvgBtNVfWooVrqvS7cctyGcbhv/4FM1Rm1ye6QFvtp0aBAwJkOUSOops 8UZg/SqF4i3BqTiKmSO4z4p2PfGF8xlGnHU1hVbDLTD0cUpmkqyUpkqYZdbztBNOP1Sj vdCQ2I6Iv19B45hfG4fkvIMDc1tp61FWCg06AkTc9sVK3sHslP8KYcmEReeCx+i39sY0 U34g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:dkim-signature; bh=X+Kpq2zjjsFSoR59RdAfVfIgy0ABJrR1nvmfTCb2rY8=; fh=NIagwVR3lZDYqar4g2Izp1UZhVYmFOz2v8DdKBTrqc0=; b=YWRD6RcJ5QLwQrwbzyjS3wezf156ICELlNv00VwSjKduAu23Wq1aWaM0sUou1vBe17 Phf8RVMTmYyvHgtTnv1dHfHlwk9BNTwNepnBIjui7PMsKQBhhVdTuGflWlsr6YBm5I17 1WkWOKKn9FU6BSJ1pQ5ZFF8pBCSsQ9WSopKS1NJtA9V3J0WhsDOkMlQRHBI4GuFWHMY4 3ZJx082qCkaPNFXrMzrNCBy+B8fyN0HDb5QFiOTpYeda4MvphXUmAYb2k+01qtRkLVPo 6069utDZP6FyY3N7Gpb8T9qf9141mAiZORQr6wMZco3EwY53eew4YxBjhrwMXX/O9/2a Z70g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=qMXkpDP3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bx23-20020a056a00429700b00666b1fb841dsi90085pfb.7.2023.08.09.14.21.01; Wed, 09 Aug 2023 14:21:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=qMXkpDP3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232674AbjHITfF (ORCPT + 56 others); Wed, 9 Aug 2023 15:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233831AbjHITfB (ORCPT ); Wed, 9 Aug 2023 15:35:01 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42ABC6 for ; Wed, 9 Aug 2023 12:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=X+Kpq2zjjsFSoR59RdAfVfIgy0ABJrR1nvmfTCb2rY8=; t=1691609700; x=1692819300; b=qMXkpDP3jABG9kYwgRSYNqf+9Ke8EkMs6OtII/wxZzOsy/f 8rPd94816KcJzi5LJl2tHXFYT9j10/1fJ8NNqoxp15VW6drbCZ95/mZdOl7MhaE8u9RJkNA4Eikun 11hkcBuRawjqGYSsy+FM0fgdPFOuiRz8+0FCSWvYnQ/aIhmI7FUfvYR0gPTo9QNGyVo4OEnOScu1t 4xdLb+u5tK03QE02kvOqy1YZP4HSn5jyuvNStWIxpxOmCr2NO7RIZWMJhll2il8YLQ81TRqxpv7KH 5Scx6Ycvd3YSL3EcC0lrEkSY2GRv6VKyjz/tcD/961LCMNrSMfNgn8Tv/5jvFX7Q==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qToxO-00F2r4-1f; Wed, 09 Aug 2023 21:34:58 +0200 Message-ID: Subject: Re: [PATCH v2] wifi: mac80211: add eht_capa debugfs field. From: Johannes Berg To: Ben Greear , linux-wireless@vger.kernel.org Date: Wed, 09 Aug 2023 21:34:57 +0200 In-Reply-To: <37a24557-2562-4891-e7ec-18b5527a54f0@candelatech.com> References: <20230519162324.1633120-1-greearb@candelatech.com> <1038a5fd7d658cc29d11a6eb8776255c50e8226c.camel@sipsolutions.net> <559120af6ed8cdfdee7eaa83531b35de2ce24a0f.camel@sipsolutions.net> <37a24557-2562-4891-e7ec-18b5527a54f0@candelatech.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2023-08-09 at 12:32 -0700, Ben Greear wrote: > On 6/14/23 13:08, Johannes Berg wrote: > > On Wed, 2023-06-14 at 09:39 -0700, Ben Greear wrote: > > > On 6/14/23 01:29, Johannes Berg wrote: > > > >=20 > > > > > + /* TODO: Fix and re-add this. It compiles in 6.4 but not agai= nst 'next' > > > > > + * according to the kernel build bot. > > > > > + * PFLAG(PHY, 5, SUPP_EXTRA_EHT_LTF, "SUPP-EXTRA-EHT-LTF"); > > > > > + */ > > > > >=20 > > > >=20 > > > > Well that's because the spec version was updated in wireless-next := ) > > > >=20 > > > > So please adjust according to the new fields there. > > >=20 > > > It will be some time before I get a chance to revisit this. If you c= an > > > accept as is, I'll fix the remaining bits when I move to 6.5 or whate= ver > > > mainline kernel has the updated spec. > > >=20 > >=20 > > Actually I think it was just this field, so maybe I can just take v1. >=20 > After doing some more detailed testing, I notice that this capa logic is = using > the AP's capability list, and is not showing lowest common features. For= instance, > a 2x2 STA radio shows as this when connected to 4x4 AP: >=20 > ... > EHT bw <=3D 80 MHz, max NSS for MCS 8-9: Rx=3D4, Tx=3D4 > EHT bw <=3D 80 MHz, max NSS for MCS 10-11: Rx=3D4, Tx=3D4 > EHT bw <=3D 80 MHz, max NSS for MCS 12-13: Rx=3D4, Tx=3D4 > EHT bw <=3D 160 MHz, max NSS for MCS 8-9: Rx=3D4, Tx=3D4 > EHT bw <=3D 160 MHz, max NSS for MCS 10-11: Rx=3D4, Tx=3D4 > EHT bw <=3D 160 MHz, max NSS for MCS 12-13: Rx=3D4, Tx=3D4 > EHT bw <=3D 320 MHz, max NSS for MCS 8-9: Rx=3D4, Tx=3D4 > EHT bw <=3D 320 MHz, max NSS for MCS 10-11: Rx=3D4, Tx=3D4 > EHT bw <=3D 320 MHz, max NSS for MCS 12-13: Rx=3D4, Tx=3D4 >=20 > I would expect it to show Rx=3D2, Tx=3D2 in this case. >=20 > Any opinions on how or whether to change this? Do we already store a com= bined > capabilities list somewhere in mac80211 for EHT? >=20 We did this for HT and VHT, and then kind of stopped for HE because it got so asymmetric and complicated ... it ended up easier for drivers to do it because they have their own hardware limitations and all and know what they may or may not advertise, and mac80211 would have to do it _all_. Yeah, not ideal either. So dunno. I wouldn't mind the logic I guess and we could probably remove stuff from the drivers, but either we'd have to be really careful about what we do and don't handle, and probably check that against what drivers have, or handle everything which gets difficult. johannes