Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2419477rbb; Wed, 28 Feb 2024 00:49:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5iGsO1w/O6qgUclwaOKIJ2QUovKprlZXilRA5Iq4JOIs+2WcQlr1QxWOIV3zc/xKST+5XNTMG/SZKhKU6QeKJyLOjTu1YF4Q0Sjj07A== X-Google-Smtp-Source: AGHT+IEPp1qe3rCs2TT80uN+p6m5jOqq7/F2LL5TOk6UHC9vtX9J8sx+xtD2zZkF/SRNXEj/trH/ X-Received: by 2002:aa7:c886:0:b0:566:1684:b1b with SMTP id p6-20020aa7c886000000b0056616840b1bmr4342516eds.42.1709110151825; Wed, 28 Feb 2024 00:49:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709110151; cv=pass; d=google.com; s=arc-20160816; b=ujKeJgMtSfefjNgtA1/GPI5EaBT/r6qGLn9kb33U3mhLCtUBnX2jwnR0TxJQT1Yye1 Wh71d6va83gfP5UCf889SdaxBd21X2yQtP4XbV3S86aTxWpAURS4d3P9reORCyHjRh9h 2WehhVYQaJv+sjUnqvt2dicymbNBmIBf5C+B9ZhaBQkGAJQIMhaKfpXdpODUzS5Ta6WW kzq3bzzI4rQk4SylsZZDu4z+Rqxgli3G6styZR6PHPc4V7aADk8EqGmQPRW6EIo8ZO+x ycAZ4ZSt2H2ZC/IXDwArk/ENHs197rnhxFf78BTw3vjeuiO0YBxclbS3u35Xucag/8yY ZeAg== 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=756ARI+CGcugO4QXBzDhLYnW8LfaKi+guBQG9KedS5Y=; fh=qW0phhq3fb3oiohK/Mu9j1KY1zyRNiiioKFc5anvatM=; b=SbLZAAPStbKWArMBynyA2ExQlFpm8t/5297vvkG0wZqpehfGdrqXZoPa/9OKcEWGx9 DrLnPl7LCdCTbcBtbje+k1PpFVnPlcUB0vfHn7S+3MVmQMMof7O6eqgKfpjPA2pjflJj WTUwXtquLmGg6rNqaZk46WThph1kesghCLmkuv4MZH3va7RUN81IiTQFFJvXHGgjvMUE aL7708bFI/uJjjhkx46GCQ59rxzJCyQwA1r3mOGZrGPfqsR0N+uKL2heCvx1vN0xjWWh 19nafw6iCLiAav55QzLJ/eYqo/SAdExPR5IzXR4EpFY8az/ey2SnizedY5R3ifTZBvAo g/Eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=VM0w4hCU; 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-4144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u13-20020a50d50d000000b0056443af09c0si1540660edi.77.2024.02.28.00.49.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:49:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=VM0w4hCU; 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-4144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4144-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 87A941F241C0 for ; Wed, 28 Feb 2024 08:49:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 423562D052; Wed, 28 Feb 2024 08:49:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="VM0w4hCU" 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 C4F2C1F608 for ; Wed, 28 Feb 2024 08:49:06 +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=1709110148; cv=none; b=AcAqSgtwpNoetCVwcdrs55HtwYSO+N1vWUa9NHuR0wSC6q6zcBbttEucZ9ziUToxCgL5MOdmyG6tgk8kVTdaAB9ASE744MY+WU9dcTPlVD77eQpKDk+LF+2LN/E2x7My/5hvvTztOjcbPPk1eA6uMGwvI19anWGX6AEgMzMbeDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709110148; c=relaxed/simple; bh=756ARI+CGcugO4QXBzDhLYnW8LfaKi+guBQG9KedS5Y=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=LOJlTc3tZyTNAfUr+p4cPntAR677sreCuSdHv6jWxUTPDCdgkRjHMgMdmAhtUj/EYv0vvqk1xMsjHMSV5HfbIGKJ5kul8xKx6ylkAVH85h3Dq0QGyyqxKCOtN9Dg6YWWSlCAt9lXWUuZusiwoYzzP8ZPyC4jZfmg3UJeTUS+laM= 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=VM0w4hCU; 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=756ARI+CGcugO4QXBzDhLYnW8LfaKi+guBQG9KedS5Y=; t=1709110146; x=1710319746; b=VM0w4hCUBZLkfyZDAnzh3EZTOPdOgqkMVH/nio1BSvd7u8llbs1wYRZJ0fElUB+01O59d5rzULS 0RKreSKZgunAjzTPfgB2OdQS60EOrilITckppIeBOqHqcJEuDu87m/TW2UVIAQnm3a1R3MPZWnQc+ fqvJFCOYMNP2CkZIWSAh/ns1QM2YeEEc2Y9vgX0Q/aT0IgZHEuOobVSA3TUpiXiSOPNnsYX104yhM ze4CtwuzMFU6lmI2rmj/VO0sNJ0ZCv7loFFK1P09daPobPa6x8wGqcVa1+XMKriONU5LJoMeTF2UA cc2S5YQ6hgvHCgCieWgpykuXLiOV1hGyWXWA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rfFce-0000000C0BC-29LZ for linux-wireless@vger.kernel.org; Wed, 28 Feb 2024 09:49:04 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Subject: [PATCH 0/8] wifi: mac80211: element parsing cleanups Date: Wed, 28 Feb 2024 09:48:08 +0100 Message-ID: <20240228084901.18661-10-johannes@sipsolutions.net> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There are some small issues in how element parsing works, and I'm going to reuse it a bit differently for CSA. But before, clean it up a bit, and in particular hide the scratch buffer, which was used oddly in a few places. johannes