Received: by 2002:a05:7208:13c3:b0:82:bbfa:f723 with SMTP id r3csp1541349rbe; Wed, 15 May 2024 06:27:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpymbX7TvRZlAdIU/s5aWWv+/iCx5QYhDlNLR45aLSUCEfrzYLL29t8mZ+E6ePbIbX1yJfaWFb6TUYKbZfxKN2m2IgdmgAMXJHxxV4fw== X-Google-Smtp-Source: AGHT+IFcU6D/Raf5xPd2RDcrBn1hAzzDJtlSoHSeqPpIf9VWyINb/Eaf7A6/mp1FVCu9T6Cyle2Y X-Received: by 2002:a50:a695:0:b0:574:fcff:964b with SMTP id 4fb4d7f45d1cf-574fcff9e76mr619200a12.8.1715779662514; Wed, 15 May 2024 06:27:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715779662; cv=pass; d=google.com; s=arc-20160816; b=M2SIPPot8GjtXDsPEhDblCDd1dqPPUSdU+oIzrLFdatjuP0I7J3ZFiBxC4VKVru4kX YjfbS3AzR/cnn457BnlkdVAJMaQB4/21gg4zoNU38MLz6Ih12TvT44SQIS91Z63eYHbr aWOg+CtTnPP8fUpNDzHnXn+JvPXO8p6K/xmn/2MaMcHYahgIgUj/6H5emu6Aj+ZXHjdL ZS3fxR5nbX82Ra+mDTRe7wJrij54PxAhCz1nHbvVh/gUx2qDXPY+TxEE5dEyeLpU+gI6 +bcrsn1TDVar1uEhjNExcg29CZHm/7cGtcgE51W5DSdn2VsNlheS8J+p/glj28YBVK1u lsuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=an+kkm4FsVhqSmZtihbtYRr2WVPauvYKZoGCl03q3F4=; fh=nHBZRHh5aMM+S4y0W1t8FJgt+I8Gfgd9egLHZmCg90g=; b=eFsS4lNiZJ/H+AVScjIJaVdZSLs7WAEdeP8BYGLNYg0+VVQSnKkYXaMqQT20O0E+TO ejQyM+MqMbEwzuhAU1ucMMDkyRvG/RuPO7yiOTjzbig2ThqVqJiPpmB/Uv8ced+m9Gw0 eO/5Je9IpsMrwJNNMdECbDK+OCHZS8EwxadYgFFgTd8vPsCVYPkpjgJhngpVvHYZZlVn W4YQB/GGM/UIelcp3RMJiNgn85y9sNKsflpM0IuhyfQhXV6g/5r5yDrq2+xMSQB0wa4J QEnEHODjWBrMQmbuVoB7KULX8c3Pj9ER2CIJM1ngSwFYdIi7cfmqmy1YULIAaWRsyJrU 09GA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iVwYMKRd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5735dedbe10si5687899a12.618.2024.05.15.06.27.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 06:27:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7688-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=@kernel.org header.s=k20201202 header.b=iVwYMKRd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7688-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9460B1F26B78 for ; Wed, 15 May 2024 13:18:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C11F286130; Wed, 15 May 2024 13:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iVwYMKRd" 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 9C71185C65 for ; Wed, 15 May 2024 13:16:09 +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=1715778970; cv=none; b=nUWQA7Ahk8yrRxUBNN/M97+U+pgFxIXQa0nyCr8MD78oohymUMpB3iffO+mdT7UILKt5JQx1ooavwmNMRxlfU/zy/aKo602ineEwx4wPfzQL/YX1R9IcsGiueT5nw+o/YLn61IOJ2j80zZ1XxZkzlZkIXA7b1RFXg+49dz9oTFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715778970; c=relaxed/simple; bh=tMgzvRoRHpCsmpg/SEp+Ei2WcrmJVgJJldNO1QUfDgE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=p4Jasbqqynq1ZafSySQ06s1sZCoFHxZibPMmjP9WpK+kfug1zMTMwpuTZmiuRJFyeerbTJ+VLUtFt1DrTlqtmywM8L3dg7PtcYVCJss/ub0Nb3EEAI8SwZ4EQR2jKhGUXOC4w7f5zRpJusSiIQWW+Z/3f0Uv1RpZb0BqnyIbSNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iVwYMKRd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34E02C116B1; Wed, 15 May 2024 13:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715778969; bh=tMgzvRoRHpCsmpg/SEp+Ei2WcrmJVgJJldNO1QUfDgE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=iVwYMKRddnexrVpSQCArFeT51vvobs9xfTsgYFB4YBNjBHDKIHHankyC3w51wTjIV Dcyp3eY2Qk0LbhKw6mBLyMvAt9VLlGtkdV9qX3A5WQUoNUszW7ZNmcDdJ+rySHV7pt Qpwl00JS9d4EYBJaAFOKDD6CaIj1JtjrxUCo/dwi2D+xmsqLJhzUqsVFQ151xUGj8G pdOzqKuQvnN170FSzhimGQ33QufwuNgUETtPO5S1o6fbI2w3SF+GXPpaIi8C+Q3wC7 TTwR1NjyMJ4VTHsIlVkOElh9MYYNR0J0QDPg2O836rplnEOtBljswQXYYMRmCQtmo4 jHK2mOJym+QuA== From: Kalle Valo To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Johannes Berg , Miriam Rachel Korenblit Subject: Re: [PATCH 4/5] wifi: mac80211: pass parsed TPE data to drivers References: <20240506194536.102148-7-johannes@sipsolutions.net> <20240506214536.2aa839969b60.I265b28209e0b29772b2f125f7f83de44a4da877b@changeid> Date: Wed, 15 May 2024 16:16:06 +0300 In-Reply-To: <20240506214536.2aa839969b60.I265b28209e0b29772b2f125f7f83de44a4da877b@changeid> (Johannes Berg's message of "Mon, 6 May 2024 21:37:56 +0200") Message-ID: <87ikzfcj1l.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Johannes Berg writes: > From: Johannes Berg > > Instead of passing the full TPE elements, in all their glory > and mixed up data formats for HE backward compatibility, parse > them fully into the right values, and pass that to the drivers. > > Also introduce proper validation already in mac80211, so that > drivers don't need to do it, and parse the EHT portions. > > The code now passes the values in the right order according to > the channel used by an interface, which could also be a subset > of the data advertised by the AP, if we couldn't connect with > the full bandwidth (for whatever reason.) > > Also add kunit tests for the more complicated bits of it. > > Reviewed-by: Miriam Rachel Korenblit > Signed-off-by: Johannes Berg Very nice, thanks for cleaning this up! Unfortunately I don't have right now any means to test this but for ath11k changes: Acked-by: Kalle Valo -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches