Received: by 2002:aa6:c46f:0:b029:96:faae:e639 with SMTP id i15csp329718lkq; Thu, 5 Nov 2020 03:40:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEey2HmLZMMIQrMB8TQMCwtW441Ql18YzN/lPBxah8nZGBp7FpKQ5Ct73Uxz4b6kVKE0rj X-Received: by 2002:a17:906:128d:: with SMTP id k13mr1830441ejb.78.1604576449898; Thu, 05 Nov 2020 03:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604576449; cv=none; d=google.com; s=arc-20160816; b=C/d+dyc7uq+b4H3wy9G8rJ4HrikmJTWvdsNhVSjlaGxF3cx98cApU+l5jQSAS3X/VB UlALEs5hPR7lfCLog6a8ShOf6PlFrbR4DPXkq46SrKbQvZX4cbj7QpWVxscWvx8bHV30 Gwsbh0ieL07lonuwt4Dr2E5BNVL9lnurriCNRrQM2CI/O1lDQtLUhJBPCcsWQ/cza7KB MkXLbVd0KwaPhnFsDr1QzBGujUDwYBgvfs/Sxp+kJTSDCstoNo5qfeYnsTZivk/M2kU9 N6M/cmEXeb3c+rrqfzWq4eLUZyy248/DdRpA+B4jnKpTq9KtcYgRMZAQXhEHAIEdbEW+ SaEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=npGsiPpZAGWaxEP7FTl12P6BSY0p8t2PtlpAqucdik0=; b=UnbSF9Xc/uqCKj4gm/DBBY80PZzIN/sng8WHKFmP53X3RkkvlAY7UIx57cGC3U2HFS oECRbDLJtA2fMMgZUOmJlJmidNuYMG91FSINcUs21IFPM5jSYKyJIbn4L/VOa4ru/SVG PPaOWxZtxl6hEEFYtXwKKnG1CoeQAMPOwwYg8CtiX/TvaZWGosAxohpTkD8m+2IwRlMG j542HPFF1YM3S5VJ9oE6MJnMzmNuiapJ6rNN27E5zclGqfiDP7sSDNcKrjV2+U+d2rmg eorTSyDNdEt78s2kzbfAcKnC7EcZ+wzEFW2W2X2QQdzYGIvKUF6UfMAQb9OeN+udYaDE zj6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Em7Arnjw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si953216ejt.126.2020.11.05.03.40.25; Thu, 05 Nov 2020 03:40:49 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=Em7Arnjw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730360AbgKELkB (ORCPT + 99 others); Thu, 5 Nov 2020 06:40:01 -0500 Received: from z5.mailgun.us ([104.130.96.5]:53064 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730339AbgKELiH (ORCPT ); Thu, 5 Nov 2020 06:38:07 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604576287; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=npGsiPpZAGWaxEP7FTl12P6BSY0p8t2PtlpAqucdik0=; b=Em7ArnjwAO9ViLfaqdhIt4UXHPYltqX46v2fVs7tV86qKpGh2XSgCQ+CqUHhpDtXhe1chH2j tuJoUcwe9F8xMWVTexrudY9++A0WCPhJkoFcrR8M20I/G2cakNXJuuFsasXmnTczBBpeKtn8 7HUPaKPK/w9VNYK5+2yjQXGNccg= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5fa3e404e7df1eca9bc305fe (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 05 Nov 2020 11:37:40 GMT Sender: cjhuang=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 50BDBC43387; Thu, 5 Nov 2020 11:37:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cjhuang) by smtp.codeaurora.org (Postfix) with ESMTPSA id 80DA9C433C8; Thu, 5 Nov 2020 11:37:38 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 05 Nov 2020 19:37:38 +0800 From: Carl Huang To: Brian Norris Cc: Johannes Berg , ath10k , linux-wireless , Doug Anderson , Abhishek Kumar Subject: Re: [RFC 1/2] nl80211: add common API to configure SAR power limitations. In-Reply-To: References: <1600753775-4745-1-git-send-email-cjhuang@codeaurora.org> <6649b0c2ff988c2ae8723ea633f86cc12da43d95.camel@sipsolutions.net> Message-ID: <2cd38a14d4ffaebc4d0b422c55397d87@codeaurora.org> X-Sender: cjhuang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-11-05 01:48, Brian Norris wrote: > On Wed, Nov 4, 2020 at 12:44 AM Carl Huang > wrote: >> On 2020-09-28 20:36, Johannes Berg wrote: >> > On Tue, 2020-09-22 at 13:49 +0800, Carl Huang wrote: >> >> +struct cfg80211_sar_freq_ranges { >> >> + u8 index; >> > >> > Does an index here make sense? >> > >> With agreement from Google, it's OK to remove it. > > I'm not sure "Google" is the arbiter of the nl80211 API, even if we > are the current planned users ;) > > But I think I agree with Johannes, that given the other plans (user > space must send all bands all the time; dropping the "apply to all > bands" support), an index isn't really necessary in either the user > space API or the internal representation handed down to drivers. All > bands should be specified, in order. > > Brian > The index here will be removed. But let's keep the explicit index in SET command. I think it adds no burden to userspace but has flexibility to skip some ranges as we remove "all or nothing" limitation. >> >> + u32 start_freq; >> >> + u32 end_freq; >> >> +};