Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp588376rdb; Mon, 29 Jan 2024 11:20:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzbxG0jRP4s+YIW/sYr+aVv8Df+2Kd4VMaxzmebhhVw0TZfeHWRSr9talItTMqpnns3Lu3 X-Received: by 2002:a17:902:dacd:b0:1d7:17e6:44fb with SMTP id q13-20020a170902dacd00b001d717e644fbmr8452373plx.32.1706556051784; Mon, 29 Jan 2024 11:20:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706556051; cv=pass; d=google.com; s=arc-20160816; b=HjsQThrEPJPzgUMvIb0FenxK2fCqjenmHfW6Q2wPShTk+/ur6OZOPQxU8e7d6q/U56 KJhaa4b9iExZTF4TbbKec8DDq4MR7BIbvj8chLmyzGM+cz55MTMuitBkF/vuF2jazSXO P1fbomYf5y6hEotLDjf4ZxHeHKB6biYDf631DmtFIejYwrvYqyBauh8FX8gXylJd1s+X Z3xxcWd3RxQaj3XI07ZRpcUIoH5miO7SnyEODUKWiJWwUqcimVv6pQcpHCuI/6FAr2w6 plFlLIiS/VVk5KTJNr3s8Q18EPJ98TpQtcd7BJ9IaboVJte0/TP8MJn4FY1nhWNVBx6E Ouqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=vX6lOjbCbHJfeS0dsN3HyoUTwT4HuVY/+MW9ZrTDvwk=; fh=oeIbR85PndgJkrCmqtWmVnvVi19Rl1PUp5hfnEQalDY=; b=bm0/DZUSZgXJ1Jh7uUMyIBNbxC+21T6H1VPGM3Wk+EYcscWoBas7DKRcgbsOuw+gZf 0ODXtDH6y9VtH3+hsLy/y2plEQjgihhBl39aSKrb8O+x1Qkh6XGk5L2DmXhMEzrznL7t HAMXbv/vSfTmDY2aPt6Fb9RKcz6WFUrVYbXD4F8PwA2CkswworT9s+5bw33uo/8Q6WXt pZ939rBHER4refzI73Z8MCWjshpgroTr1bGiIarlECVOm+x+Wfb5fqsVSEVJceuKw6rt vl2gBDcwtJ3Iv6mtwf840gywGlazjbcrcXJrnk7bJZx1f6KYYVN7GsTbFXxK8kAuSLqk ENOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="OhT/Mgu8"; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-2710-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=1; AJvYcCUUN3sEAOOQjYxfCy/d4tmtvL3hvmTUKiOOKmHLmHWFKlri/fC5D/0KWZ4no8yNKr4qA1i52ziaEbJCdE4XK3AbLEX30jYRq7iqDaimEg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w3-20020a170902d10300b001d8da5e2670si2378674plw.458.2024.01.29.11.20.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 11:20:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2710-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="OhT/Mgu8"; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-2710-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 177EE2887A3 for ; Mon, 29 Jan 2024 19:20:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22C1B4C619; Mon, 29 Jan 2024 19:20:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="OhT/Mgu8" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 030AB335B5 for ; Mon, 29 Jan 2024 19:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706556048; cv=none; b=kgnUaau7/ozGts8fKt7krFzP04qBajw1XFPyodoVch/igNT7vuvUsmGgITUpUCeM05xTo/iGDV5+LP1RsfLaRLyBXRHRSdq7K45g+J58T3MZUvNmYVnfCgVkPzSSDE/iIU/U0jLDGKzskkXfpnIXHLluiqnBJX9aA/mzqpOJhi4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706556048; c=relaxed/simple; bh=vX6lOjbCbHJfeS0dsN3HyoUTwT4HuVY/+MW9ZrTDvwk=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=afr1q7zLdOPhroQ2S77zD9ZlpdovNoEvuOvW/dZMJOfzgzSbsM8xe06ZS27CbyO7q+IKOxtGVDL8DepfSXma8SG1dxwuV8BfNolDYU5k6q3uTx5HXvZ5g6q42jjfIbJEEcoGhnVWKuec99V3I8g2xpFHomwvp5pWLrnKkZZwQZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=OhT/Mgu8; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:To:From:Content-Type:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=vX6lOjbCbHJfeS0dsN3HyoUTwT4HuVY/+MW9ZrTDvwk=; t=1706556046; x=1707765646; b=OhT/Mgu8xUkgrTCekhbkd4vDwNTtHfaJpX+Iy5J+jBN+xyMM3CK+R1qNLlEbw+DXpq8nxdmMT8U AYc3A9HW0OwWsaGN4gUqcOIke6ZqFQb1BGJ9f7UBO7uCGYVa83OU9v/ISCGumPONtlCktHdysg0L8 SF+1I/Oc1Nw0gBM6V62rpJlwwHAeD8zrtjuDdq1yMFs6XQhbJB9pMA2gZFd7JghuD/rjLv44aqUqz gY72KQ9Iwh2DzgTLS6FZLhCqEYeamE0vFGagAw9JP1qB9ZfW7B5KaOkVKWOd2rsEZGE7HGbpl+Yyu dJfsOXlV0YeAc0pv30pM2+wClzSeHvCJ/xkg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rUXBT-000000050Z6-3924 for linux-wireless@vger.kernel.org; Mon, 29 Jan 2024 20:20:43 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Subject: [PATCH 00/10] wifi: mac80211: initial element helper cleanups Date: Mon, 29 Jan 2024 20:19:26 +0100 Message-ID: <20240129192041.58481-12-johannes@sipsolutions.net> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit With the fix here with HE/EHT capabilities I got really annoyed by how the code uses all those bare pointers to create elements, and did some rework. The real reason for all that was the scanning code, but really scanning is rare and we're better off with simpler code, so allocate a temporary SKB for scanning and then operate on SKBs. johannes