Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1061579pxb; Thu, 26 Aug 2021 23:46:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylJ/VFvtb5d1HYff+S+H+HrpIWECiCKNR2+mCwm8QW7aFfoKQWYnYOFlucgQj5TkFIaSOn X-Received: by 2002:a05:6638:1495:: with SMTP id j21mr6822974jak.117.1630046799817; Thu, 26 Aug 2021 23:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630046799; cv=none; d=google.com; s=arc-20160816; b=GWiy3XwuCGYlBWyy1xLIjy5gnYxciVif+G1UeOoXUNFFAaWd0p+fMbFSuj6ltGOU/R GbyEu8aEYW676V/6gzTLomt4xnH/Rj7rWaVCGjjs4XvxfOf+Hn3KkO0I0/0b/pbdE6JS yHjIMAM7PIPVrG2XyUcbTEH+CYkWgMWYr9aBJsavlTtAuYf9xgUqLtccTaUq1b9ezXhn ZDZliBFsVsgUYrhDtrMzpK7ebhWPP01EsZDPbY7bEhCGpF8t8VzGcRjPig/5CnRZLK1n Tl2g7tohQhy5wocfmPPvIElKYaaa17D6QJ6LT8mHTkAlFfhJtYh33TJdJaC9WoTLAgOV hHVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=ZRTYD6eP/gs8e0gFb1UkAZUbs3ZjYkft6D2Zi+/Ha+8=; b=mPtye36MFVoGg9TY8rKrJW603mZltjDkJLOK71vE3WrD612jYFOPmdx+sLOQLUJDgv NN0ZrGfs2IOj3TUJNAetUMMOW3qAzyGbxdy3gU+Xe8i7MAFhITWs3tKzgfTgHXlsjmjl cV8xO0mhu8SXFv+SICOlJzjfOKKv0f3ec3kDpkWYqhWwGXXFw1FvxDef7AlIPVFshHao ZzUpBEIdQrou6x/1L6R+Lc3DrRGpYlp5YYDv7/ErZ/0R0XlyJUggMtYXchaaC0P04thw h0atCHi3GkzLOi6H8hO+nykgj/79wZwaTW3haOj631b04wwiONeWMlktaCVy2w0RsNNi fdXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=EWJpGmLB; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si6036673ilu.22.2021.08.26.23.46.20; Thu, 26 Aug 2021 23:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=EWJpGmLB; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233156AbhH0GrH (ORCPT + 99 others); Fri, 27 Aug 2021 02:47:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbhH0GrH (ORCPT ); Fri, 27 Aug 2021 02:47:07 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA7DBC061757 for ; Thu, 26 Aug 2021 23:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=ZRTYD6eP/gs8e0gFb1UkAZUbs3ZjYkft6D2Zi+/Ha+8=; t=1630046778; x=1631256378; b=EWJpGmLBjyYlXrztdFgHx3poRjx85doNqHjZlz9TGZWJg4t JEZRfXWd+2lMjP5k/8Iwd7px4/4HEogROA/1x62Gj9mBEMFVHWoxlgKjlDvv1STww9K2o3cpGNlPa DKfca05RKL07xavLj6qpSD3lijh9dfhqcZPPzmMNtJ8luKTG0t2lAZQh2/D+VtCXhaICuWws5jXTo bnY2PuAVI8r7QA44GCOJuWW5x/gC3NsC4P8i2pn1AX+OO0ADY+vx8w4mwpso/0dtpR6uWnjWUveM6 XLuMM0vZj0bAQOCRSkU50g3ORxZSUWh0wWI3ZH0hY6Vv/iNwWgfrbYEvD8lF1aZQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1mJVcy-00GVUD-Ay; Fri, 27 Aug 2021 08:46:12 +0200 Message-ID: <48ad47869e703cbef437378c508d6a5b64c160ae.camel@sipsolutions.net> Subject: Re: [PATCH v2 8/8] mac80211: save transmit power envelope element and power constraint From: Johannes Berg To: Wen Gong Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Date: Fri, 27 Aug 2021 08:46:11 +0200 In-Reply-To: <25fcede26b99604a03d0b321b7120db4@codeaurora.org> References: <20210820122041.12157-1-wgong@codeaurora.org> <20210820122041.12157-9-wgong@codeaurora.org> <25fcede26b99604a03d0b321b7120db4@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2021-08-27 at 10:11 +0800, Wen Gong wrote: > > Also, if we're doing this anyway, then we can change > > the code above (perhaps as a separate patch) to not do > > cfg80211_find_ext_ie() but rather take it out of the parsed. > do you mean NOT use cfg80211_find_ext_ie()/cfg80211_find_ie() and still > use "struct ieee802_11_elems elems" here and > move this code to a separate function/patch? Well, there's an existing place in this function that uses cfg80211_find_ext_ie(), and various uses of ieee80211_bss_get_ie(), so it feels like if we're going to do the full parsing, we should switch all the existing "look up an element" to also use the parsed data instead. Not the other way around :) johannes