Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1192306rwb; Thu, 19 Jan 2023 07:40:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXshne/aTJQWVHnT01T6iJ+pXmbDBkXR+dKNn6yICBD1X4SN88dCNKZWm02/yTlJZyijIC2P X-Received: by 2002:a50:ff08:0:b0:49b:7416:e3ff with SMTP id a8-20020a50ff08000000b0049b7416e3ffmr11233353edu.5.1674142854771; Thu, 19 Jan 2023 07:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674142854; cv=none; d=google.com; s=arc-20160816; b=xzR+JSLjmvSuQb6ic38U01TaozWMh2kDyjY4xhbHSnseXc9DSeStm5cHJhgbO2L96r HC01AVVu4HI6H3VkxXjyvenLUADMb0ZCL0u0x7yJk1bJcjMKBTidiPBPObEfezK3blq2 nFq8UZQOZOhbBbnAZJjpf1xIDgW76vxrBalCeId7I7GAkoE12O0eyGTmVSI3QxZIYSiN d8z7y4B3Mts2mwCtIeDvkF5NWzA0J6qhe9qB/QuoMfaKq3KwZYdZBCjD+q4NyH7OkXNV D/bHeTt6Y/qWutaSjRSbOWJ+BgCpyEu5sTUQHdBLYjAUkfwTE6BHFwrALQVVBQFNExRD uESA== 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:cc:to:from :subject:message-id:dkim-signature; bh=d3pvrWMx+ElbUkaPmv29vprlfZkjlOchKFEIUXI1z90=; b=LzDfCFt+piN3y3jWlVnl2Pg1yf2E5grZcKCTE/7yDCe83gwYdtsU4gmcZX/pNkjDwR iPptU0cNlcCJndv0R2X4Brd5zOHE6kvWFAfNt6gnMucxeQbbfGTSpTA+rspxThzWRE08 jTRmfwMjzKACuq/RahnmDpFI/t7CTNyuG1wy0YjWvxJ569vWMXSaNVb/FqAkW3H/X3pV EVfZFM5p6xdIcjEBkfxTcj0YUHG7U5FZNbV2+tODjLK7mndBo/P+R9/adwTnGqR6OoJa k2i63JkUGTNIKy2hiLu3vXXf+xA1mQvBRN5dUegx3Vb0q3Eoim6X0IztoeXqVRhdK/Jj rIJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=YeztB0TA; 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 e7-20020a50fb87000000b0048c68e201desi36185824edq.555.2023.01.19.07.40.38; Thu, 19 Jan 2023 07:40:54 -0800 (PST) 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=YeztB0TA; 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 S230029AbjASPcB (ORCPT + 63 others); Thu, 19 Jan 2023 10:32:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjASPcA (ORCPT ); Thu, 19 Jan 2023 10:32:00 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF6D881025 for ; Thu, 19 Jan 2023 07:31:59 -0800 (PST) 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:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=d3pvrWMx+ElbUkaPmv29vprlfZkjlOchKFEIUXI1z90=; t=1674142319; x=1675351919; b=YeztB0TAy7+xw2/aBN+snRjLrR7vNVEyN6DqO//Qeux2CKe OcrlEgZSdGs3SgoFGi2OKML2rqGgbdIvmseqzdFtWK9ZLnaXANAc/luU79TgGzIf1BGzOuVrZitOC g+bV+RUU6/I4Dw0+XsyLXCPp6kYcnP4T3qYBbzxymjgweAdrsFAAEdl/6XDw0IlPbfh1pdPCkWgFI NYiY2rr153+ltkdOXn7TKTuJZXn+ETRfVupzv7MCWoAjOMz43oWkphSqD652vQIuebd6owdb8FGfm xPXB85nhnlkGDuzI2zZo88Yyn4SAIlvstFEHT1EkQdr3agoIdddOn4ubsWzWKJew==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pIWtR-006Yor-1w; Thu, 19 Jan 2023 16:31:57 +0100 Message-ID: Subject: Re: [RFC 1/4] wifi: nl80211: advertise RU puncturing support to userspace From: Johannes Berg To: Muna Sinada Cc: linux-wireless@vger.kernel.org, Aloka Dixit Date: Thu, 19 Jan 2023 16:31:56 +0100 In-Reply-To: <1670006154-6092-2-git-send-email-quic_msinada@quicinc.com> References: <1670006154-6092-1-git-send-email-quic_msinada@quicinc.com> <1670006154-6092-2-git-send-email-quic_msinada@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) 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,SPF_HELO_PASS,SPF_PASS 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 Fri, 2022-12-02 at 10:35 -0800, Muna Sinada wrote: > From: Aloka Dixit > [...] > Signed-off-by: Aloka Dixit You should probably add your S-o-b since you handled the patch. > + * @ru_punct_supp_bw: Whether the driver supports RU puncturing, and if = so, > + * for which bandwidths. >=20 I find the definition in nl80211 to be clearer which talks about minimum bandwidth, to be honest. > * @NUM_NL80211_ATTR: total number of nl80211_attrs available > + * unneeded blank line? > +/** > + * enum nl80211_ru_punct_supp_bw - Bandwidths supporting preamble punctu= ring > + * > + * @NL80211_RU_PUNCT_NOT_SUPP: preamble puncturing is not supported I see why you did this (cfg80211) but can't say I like it since in netlink terms we'd just not include the attribute in that case ... > + * @NL80211_RU_PUNCT_SUPP_BW_80: puncturing supported within channels of= at > + * least 80 MHz bandwidth > + * @NL80211_RU_PUNCT_SUPP_BW_160: puncturing supported within channels o= f at > + * least 160 MHz bandwidth > + * @NL80211_RU_PUNCT_SUPP_BW_320: puncturing supported within 320 MHz. > + */ > +enum nl80211_ru_punct_supp_bw { > + NL80211_RU_PUNCT_NOT_SUPP, > + NL80211_RU_PUNCT_SUPP_BW_80, > + NL80211_RU_PUNCT_SUPP_BW_160, > + NL80211_RU_PUNCT_SUPP_BW_320, > +}; Btw why is this a minimum bandwidth - couldn't this be a bitmap of bandwidths for example? I mean, is there a technical requirement that if you do it in 80, you can do it in 160? It's probably true in general, but maybe we can just completely avoid defining the new enum by saying u32 puncturing_widths; and put there BIT(NL80211_CHAN_WIDTH_80), BIT(NL80211_CHAN_WIDTH_160) and BIT(NL80211_CHAN_WIDTH_320) - and maybe even BIT(NL80211_CHAN_WIDTH_80P80) which could conceivably be harder/less supported, and you haven't covered (is it part of your 80+, 160+ or not covered at all?) That way also 0 =3D=3D not supported in cfg80211. johannes