Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp604487pxb; Fri, 13 Aug 2021 02:09:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvhVLFQhezItYl4hBLbL9BsF1uQz5J9RZhdDbtoGKWSDNsQVIaZw4uMkRkyR2ziTRR2RPD X-Received: by 2002:a17:906:268b:: with SMTP id t11mr1422620ejc.397.1628845745820; Fri, 13 Aug 2021 02:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628845745; cv=none; d=google.com; s=arc-20160816; b=szTEOF28vSTrA4p9cNmJ4JFGHoRhmOxA0zRFLY8HZbR9NeWfD/HpyxjfKJibJ6EWf/ shEEnfFRSdtxlSOP74mL+mjpFgix8AgLnT98Qg5sXFgrRw6YOndl7aN178o33KIdF2ut q3XBiS6C7LGdoLdVYE7cD9Z8OqRnQOOESidsXYkXt9gbaqPDstNkCyf4IjODhePlNolM 9tPtAqoIhvp5Q7dCL9ETrpZ56zwg7TKHwXBS31a04Js5MNMC05+Td5ZoBK54w4ElgMIr xUbL4p4V35drqolm4/YozEirv9h4U0NjeN3s9soVJTIeTNRRJ8piZMgiGf8vG2lumRCr vNsA== 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=yEydqY9Xy13lsq8FKdyDyWGqKcxRfkS1FfPdMJ2lE1E=; b=qYHXpk7N+6YrKMPtnyynIikM7n72nLpY8JhKENrfLbAaNTYfgI2PmWWqY2SACAkuh3 SWGsAbIUqyFmH2pbZCIN6V6ebTJOLacm7gg4l/W7AelsIWh/bPeY62qdnkHDbiT51ocQ qffZU8QXTXSRIVp/VVLtp0w8Q9Cib8LUnyDi9J6uy/MggE40YeKrfqJCxCCxKhVe0KwH TWx9a6SRA+ImJXzJ+MY5D1vTcDTv6Mya4zl4rSIGP/ebTClNvL6nNeQ8GSJ46hKvt/cu J/60+ieVnpgu9oR6SCddjVXs+sRlsxbKpRloS5W7E5G8MGH0gkGD5MrCTjsyOFjyCdIn mNmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=GsbjOqWz; 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 f14si957599ejj.667.2021.08.13.02.08.38; Fri, 13 Aug 2021 02:09:05 -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=GsbjOqWz; 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 S239450AbhHMIxn (ORCPT + 99 others); Fri, 13 Aug 2021 04:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239342AbhHMIxm (ORCPT ); Fri, 13 Aug 2021 04:53:42 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 506C0C061756 for ; Fri, 13 Aug 2021 01:53:16 -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=yEydqY9Xy13lsq8FKdyDyWGqKcxRfkS1FfPdMJ2lE1E=; t=1628844796; x=1630054396; b=GsbjOqWzFzHG05exebZdJ9sDNS0p8S/op7J1IdC9PxqD6rS aZqZRKbI8zFBqDBx+OugVTDWPjxMolBxy6D6TNUrYnwR8E0ag9VjYDQ7t8hdOtrRTJvZICSfgnhvZ TuzO/XPPNV63wkDL71ZwOvSQrOnzsr2B94Y14/xolcygyw7e6pVG7CccDdsJq1xqUFIFFPTxZ0/c5 RoSm4os8dRfBMmDwGT0jVFI8aMprBA7Tn5g/3WEXoX22zP6u4QaS9VdAwYxeM4zUMITDdMcfWuxmc QcuwPgVGm6WTvPys8ztpj+uhz7vuAs2YtNSn259PayBPkF1/09Kav0YVN4kwm6bA==; 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 1mESwA-00AANQ-Nf; Fri, 13 Aug 2021 10:53:10 +0200 Message-ID: Subject: Re: [PATCH 9/9] 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, 13 Aug 2021 10:53:09 +0200 In-Reply-To: References: <20210517201932.8860-1-wgong@codeaurora.org> <20210517201932.8860-10-wgong@codeaurora.org> (sfid-20210517_222034_029448_A9A89D57) <1126f8d996e895ae048092b3f8aad19b@codeaurora.org> <38e7d9d2eebafa7245a36a0a0396094526eb3efd.camel@sipsolutions.net> <1273cc1a399a7457c3d908648a7651c8fe9b93f3.camel@sipsolutions.net> 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-13 at 16:47 +0800, Wen Gong wrote: > > > > > 2) Should we at least check it again from the protected beacon or such > > > > > after association, so we don't blindly trust the probe response or > > > > > beacon (received during scan, not validated) at least when BIGTK is in > > > > > use? > > > > > > > > May we add support for BIGTK in future with another patch? > > > > > > We already have BIGTK support in mac80211, so if we don't do that now > > > we're almost certainly not going to do it, so I'd really prefer if you > > > did it here, or if a separate patch still did it now. > > > > Actually, I should say though - the question was more whether we even > > need/want that, rather than whether we can do it later or not. > > > > If we should protect this data/information then IMHO we should do it > > now, but it's not clear to me that we should, given that we also don't > > have encrypted association response and we still take information from > > there too, etc. > > > > johannes > I prefer to add a new enum(not use BSS_CHANGED_TXPOWER),e.g, > BSS_CHANGED_PWR_ENV. > And add check in ieee80211_rx_mgmt_beacon() as well as > ieee80211_handle_pwr_constr(), > when the value of pwr_reduction or content of elems.tx_pwr_env changed, > save the pwr_reduction and elems.tx_pwr_env to ieee80211_bss_conf, and > notify lower > driver with BSS_CHANGED_PWR_ENV, then lower driver will do next action. > I don't really have any objection to this, but OTOH it feels like drivers will probably not really listen to this if it can only happen due to BIGTK? And if we always defer this until the first beacon, that also feels wrong and bad? I'm not sure what the right answer here is, TBH. Maybe the right answer is to indeed ignore beacon protection for this, and do exactly what you did here, and say that the TX power envelope thing is just not meant to be protected, because the protection is meant to protect the connection etc. and not the performance (and regulatory?) Do we get this *only* in the beacon, or also in the association response? If it's also in the association response we could use the data from *there*, and basically say that the association response might need some protection (later) anyway? johannes