From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2115926C3B1 for ; Mon, 5 May 2025 17:02:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746464548; cv=none; b=ERAXmUIKdc51n8JeXAqkYUtdlstUbuBkcKzL/uu86uBoEw+YMfpz3EZw3ky+D1h8nc3HGAEgcMU+4vEslpKUAG+b+gv7+MWYXIYbFPkCUEHhQ34PuMT6ViIywJG92vON0ZX5nCVFtGz5jvReHj+Ktp4g1MNfw6xEvOc9E1VXyxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746464548; c=relaxed/simple; bh=h9UHv31E49kHV1zeF+jVvA6jTS0PubcXmWfDtyZIBRI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=R7b39ectexYVPs/cQRFIJj0Ea8/NbI9olbLBOKMch2mnqmru43rIR6z/eUnMCLE0i/WM9q/DhGPXxLiyYJEymx3R00q8r9VajY6s2oI3GwIEPMZidyNatcv4vzefmZRr4YD0wPi9cJhQ0kYyi+ZwAFn6CmT/TIyqtHHZAGy5TFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uhsn3occ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uhsn3occ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C8AEC4CEF1; Mon, 5 May 2025 17:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746464547; bh=h9UHv31E49kHV1zeF+jVvA6jTS0PubcXmWfDtyZIBRI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uhsn3occS2SWtNXmd/hxl0LpNum9+Qc3VOLXz6m3iOTlBTEtrm3hyURXqhT1uO5Ck PyjcHP+OOUmSL4dJglMn9P3V7+XVsABgu5xNwSALssINjKuaWh5D9/akAL8DxbS3Co FPyX3jhFCtg+4tsKZoVjyyI44sNEqEhh5EW7hXwHL69z782oxUKkdz1MRoU4FYefJB Tl8EccIz4UAC7Vi1dwQfRNqDzAs1m4BMpYKoqBv9XPhKhmVjSrjBl227RsHjekV242 JzitNICd1SjV5l40MBuY/zpIWuTgdIMfsOe0exl5xnEQ4qN4iNT135RzAlAssF5nOg iOSQFF1LtAdvA== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, donald.hunter@gmail.com, johannes@sipsolutions.net, razor@blackwall.org, Jakub Kicinski Subject: [PATCH net-next 1/4] netlink: specs: nl80211: drop structs which are not uAPI Date: Mon, 5 May 2025 10:02:12 -0700 Message-ID: <20250505170215.253672-2-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250505170215.253672-1-kuba@kernel.org> References: <20250505170215.253672-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit C codegen will soon use structs for binary types. A handful of structs in WiFi carry information elements from the wire, defined by the standard. The structs are not part of uAPI, so we can't use them in C directly. We could add them to the uAPI or add some annotation to tell the codegen to output a local version to the user header. The former seems arbitrary since we don't expose structs for most of the standard. The latter seems like a lot of work for a rare occurrence. Drop the struct info for now. Link: https://lore.kernel.org/004030652d592b379e730be2f0344bebc4a03475.camel@sipsolutions.net Signed-off-by: Jakub Kicinski --- Documentation/netlink/specs/nl80211.yaml | 68 ------------------------ 1 file changed, 68 deletions(-) diff --git a/Documentation/netlink/specs/nl80211.yaml b/Documentation/netlink/specs/nl80211.yaml index 1ec49c3562cd..3611b11a7d8f 100644 --- a/Documentation/netlink/specs/nl80211.yaml +++ b/Documentation/netlink/specs/nl80211.yaml @@ -203,71 +203,6 @@ protocol: genetlink-legacy - scan-random-mac-addr - sched-scan-random-mac-addr - no-random-mac-addr - - - name: ieee80211-mcs-info - type: struct - members: - - - name: rx-mask - type: binary - len: 10 - - - name: rx-highest - type: u16 - byte-order: little-endian - - - name: tx-params - type: u8 - - - name: reserved - type: binary - len: 3 - - - name: ieee80211-vht-mcs-info - type: struct - members: - - - name: rx-mcs-map - type: u16 - byte-order: little-endian - - - name: rx-highest - type: u16 - byte-order: little-endian - - - name: tx-mcs-map - type: u16 - byte-order: little-endian - - - name: tx-highest - type: u16 - byte-order: little-endian - - - name: ieee80211-ht-cap - type: struct - members: - - - name: cap-info - type: u16 - byte-order: little-endian - - - name: ampdu-params-info - type: u8 - - - name: mcs - type: binary - struct: ieee80211-mcs-info - - - name: extended-ht-cap-info - type: u16 - byte-order: little-endian - - - name: tx-bf-cap-info - type: u32 - byte-order: little-endian - - - name: antenna-selection-info - type: u8 - name: channel-type type: enum @@ -761,7 +696,6 @@ protocol: genetlink-legacy - name: ht-capability-mask type: binary - struct: ieee80211-ht-cap - name: noack-map type: u16 @@ -1382,7 +1316,6 @@ protocol: genetlink-legacy - name: ht-mcs-set type: binary - struct: ieee80211-mcs-info - name: ht-capa type: u16 @@ -1395,7 +1328,6 @@ protocol: genetlink-legacy - name: vht-mcs-set type: binary - struct: ieee80211-vht-mcs-info - name: vht-capa type: u32 -- 2.49.0