Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp649367lqh; Thu, 28 Mar 2024 11:57:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX74RnaRJjF0ajZPuI7w36N7Ce7Qg3angr4U0PD1UYZK5rQLYlCcvffJaYgCuskTmxNhNFPMjG5vN9PDGCf8PJHFoMf4af28K07sNXV8w== X-Google-Smtp-Source: AGHT+IG1t319EJRR4EYrSTo47nw+eU/Rqsq9OIUOnoDaWke/Pzh1kcF5hAh10aRtf3nEt4CHwI5v X-Received: by 2002:a05:6a20:12d1:b0:1a3:6f54:fdf6 with SMTP id v17-20020a056a2012d100b001a36f54fdf6mr28306pzg.10.1711652265881; Thu, 28 Mar 2024 11:57:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711652265; cv=pass; d=google.com; s=arc-20160816; b=Y6kzqcs05umchA2eCzCeIOqDFHSKKI/gL+QpgTn+NHtm5/qT14KBgT6pfNkC+9pBFn vf/xhXKm6+/Kwea65aQ/euff23T1g6AeAswEakd/SD0hV1IeXvfD577ondtPDgUAIpUj eJu3YlyL1vRGN8A4N39crNiAInJhOCqTUT+1lZ0i9IJiwz5UckuesTFhIrldUOcx6gia YcFqJEFMRUjptmR5HKqQIxs8KNwRDDkjubDQJuY1WWG2CY7D2pgppFG/FVdY31kGohJl 2aTm/IJlJbmUjt6heNwZhOhRc6HInXul3Xp/0rJjPrTYIfl/WnaWEtHxVoTe4gEERb6e 5I2w== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=rfFSAsJsT2Wmw0hTegLH8ssxfxvZ8MTXjUEz/hkR0cs=; fh=63HVd5F585rOgxUQ1LoIfTcuhvjFMqBTYKH9NwITnjI=; b=w1O6THlMIMlZ6w1CT7PMk2mO1jKSIlx1Zx+xFP3p1KC+QNiEc9orNfFH4yis3P/Uok VMngIXvh01KYyEVkdx/5ukt7dTesG3bapOrwNlsHPif4PjsThIVqxvoKx7E3gDTD4FZL sHA6oGfHCuQgX8wP7o9PxV3PR9cEdT3/gcvq6rWaXauCXbLSH1d0G6hBteev9GMtcGe1 pF0+4oJJT8qf7mG8Ipc+CQdtAiKZmeqSoaB83WYETeEXm5zSro+oIzFjU5GmWPaMu3Rl HNlxJ5zR4tnjTykpL1f+8VgyIjDOiDE0jCdePDaqjwlvjwOoxYHwBGyDgZuO1lhcj3sX lzdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ti6Tw9mM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cm8-20020a056a020a0800b005e838a618besi2260602pgb.11.2024.03.28.11.57.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 11:57:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5493-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=@kernel.org header.s=k20201202 header.b=ti6Tw9mM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 169C429FCCE for ; Thu, 28 Mar 2024 18:57:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4203C3CF73; Thu, 28 Mar 2024 18:57:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ti6Tw9mM" X-Original-To: linux-wireless@vger.kernel.org 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 1A5211849; Thu, 28 Mar 2024 18:57:41 +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=1711652261; cv=none; b=AiOWxdUOtasvU/lVGm3tjh1InbmkR7HDv/O8uYKYI+dVYrlimIzhvAGXFb3hqbaOdluCUki9rPiFpiPsT1Sc0HbhZq2dUcSuwSfeVYitxxO0HvBqW+cd31rUQ9QWe8wfGGGez8/NJDNEUIWEkg33NB/AKy1qjj9w/XE8pkJm6SY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711652261; c=relaxed/simple; bh=g8MZoSOBw83lfy1GQGN+fYvIbwsa4mnyeiq8LMMUAbw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BBJFPvo6RZOpe/TNOm6Y90BC6MiXrObRhjbR6j+0oARoGoI5KpzlvIRYtoD0YAsSZZ9Dyic+dta6X73nVeqVI1DdvNapPbss/wnc3M7ziObh0f/y8JClqrOouFjYHDoZ/gHCwwa+8DTO4qZR/EuAPMCGFXG/ZwBnYT9qjICvKFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ti6Tw9mM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A43B2C433C7; Thu, 28 Mar 2024 18:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711652261; bh=g8MZoSOBw83lfy1GQGN+fYvIbwsa4mnyeiq8LMMUAbw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ti6Tw9mMMkTBavcMr86LzhVafkUKbgTXs+DJ6l9HnvUJFa5/xg1SngxeY7S0O+Uul uNPxj6Nm9l3lBPwl+KOM8IHUD8F74Ok4LxdD8acbvwlx6y/18dnrr0rgOExUPDQfrB s0T7Hw0h6TJcZUNzHAsZd+fAPfpZczhpHXwFyrFU2hy0dO9Nuyj+m6cIXO/NQmRr49 ix6BypTQQpIvqDWp+hWwKWEha/TEU+mQfG/jnEjUTc4PblbILf7d/OfV3tgshCbxQY kwsvK1xr4+AKzxzfvZdZ+KHUpCNz61MxWnF063i3bTp9g9iw0cs5a6ddzmC42e9Ex4 E1HRQ1jqvy4zQ== Date: Thu, 28 Mar 2024 11:57:39 -0700 From: Jakub Kicinski To: Johannes Berg Cc: Karthikeyan Periyasamy , ath12k@lists.infradead.org, linux-wireless@vger.kernel.org, Vasanthakumar Thiagarajan , netdev@vger.kernel.org Subject: Re: [PATCH 02/13] wifi: nl80211: send underlying multi-hardware channel capabilities to user space Message-ID: <20240328115739.78ec5650@kernel.org> In-Reply-To: <485ca445f0f0c47179a338df2538e74d520627ad.camel@sipsolutions.net> References: <20240328072916.1164195-1-quic_periyasa@quicinc.com> <20240328072916.1164195-3-quic_periyasa@quicinc.com> <6d92d0ba4a8764cd91cc20c4bd35613bcc41dfcd.camel@sipsolutions.net> <9d5c2f9f-19b5-af4d-8018-1eb97fac10d6@quicinc.com> <9d0f309da45ae657cd2ce0bc11a93d66e856ef64.camel@sipsolutions.net> <20240328114903.1d0c8af9@kernel.org> <485ca445f0f0c47179a338df2538e74d520627ad.camel@sipsolutions.net> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 28 Mar 2024 19:53:33 +0100 Johannes Berg wrote: > I suppose we could even define a > > nla_for_each_type(..., type) That's probably a good idea for the kernel! We already have a bunch of the loops with the if (type != DESIRED) continue, as you mentioned.