Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp496762pxb; Tue, 3 Nov 2020 05:18:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUBSuwQ1JAcnefJWvL0g2IQprdY/9tCnpGMakD3YphgYHAeX5XwWlPUKUna0FAuFeIwR2F X-Received: by 2002:a05:6402:1bc9:: with SMTP id ch9mr22186345edb.386.1604409492601; Tue, 03 Nov 2020 05:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604409492; cv=none; d=google.com; s=arc-20160816; b=T3JF5R09MVpmYqBiLcfqu9xlu/LzJRIMVhgLpYKz6hWNIExya5yNnYC9L0IjSXR+oe 0MevpszEBc9bjC+jlaZgtE2OxWYJUyJKvHY/U1f2lem6LWim4nBpW5H0BiIoYCN9Am5q uBDPDnYxQ+I8Uwax/b+KpJyZKbOqEVww/aLbx00ad20FQg+sRotxkf/DCA92MX4lm7AT XnTsf0rLjh7DooNY9qefkiN4ScqVsOl/KBVYGZ5XGGsEM5F6Vd8GHVDQbqqRjNGBEIQU yiGQq2YMxenZSJGx7WGDsm1szftvJli5K9/SNP6HFZ6vVqJmXu85I6+a+ZDAmeSxLmaY vb1A== 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; bh=XSECIvrdcnuENr6Q9hrFHZyQM23QmPr8rfEdL8dF2Zg=; b=hnxgtCnGWBD4rxkPruimg43uAFRgP1ZTmeUnFwNxRnF1w9pgYkGs8Q0EGV4F713zCG hDrAC2d+eaoWcwIgSujS7wMIzc6hA1mUsJaa6iOdRswymbENBhv/8XiF0Hjz8+XQYm/Z gY9M/XQ+82eYgk6Zr+K2aEGVHMSdYaYrPQGAa722uADPtZEt7TtkmqXpUKGqBW41G2Et RvNCMyhfrMRHbyUGHeVh5ubDZooLqVMbnZNtQDYhOWBj3K47mPF8DBYlhQGUEeW3Yl4p zaOcc+iQXe8jRLAy/SrYyk96laFvPbJX08HlSVK18GxgEoMeZCXPLfCsDPGKTFHnCQi/ 79QQ== ARC-Authentication-Results: i=1; mx.google.com; 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 g16si13078237edq.312.2020.11.03.05.17.45; Tue, 03 Nov 2020 05:18:12 -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; 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 S1729005AbgKCNPy (ORCPT + 99 others); Tue, 3 Nov 2020 08:15:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728679AbgKCNPy (ORCPT ); Tue, 3 Nov 2020 08:15:54 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F13FC0613D1 for ; Tue, 3 Nov 2020 05:15:54 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kZwAB-000JQW-0T; Tue, 03 Nov 2020 14:15:51 +0100 Message-ID: Subject: Re: [RFC 1/2] nl80211: add common API to configure SAR power limitations. From: Johannes Berg To: Carl Huang , Abhishek Kumar Cc: briannorris@chromium.org, linux-wireless@vger.kernel.org, dianders@chromium.org, ath10k@lists.infradead.org Date: Tue, 03 Nov 2020 14:15:34 +0100 In-Reply-To: References: <20201030205639.1452712-1-kuabhs@chromium.org> <20201031024631.1528113-1-kuabhs@chromium.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) 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 Tue, 2020-11-03 at 10:34 +0800, Carl Huang wrote: > On 2020-10-31 10:46, Abhishek Kumar wrote: > > From: kuabhs@chromium.org > > > > There are few more additional comments here. > > > + * @NL80211_CMD_SET_SAR_SPECS: SAR power limitation configuration is > > > + * passed using %NL80211_ATTR_SAR_SPEC. > > > + * > > > > This command requires NL80211_ATTR_IFINDEX, probably should be better > > to add > > this in the comment ? > > > Per Johannes's comments, this explicit index is not required. Are you > fine with it? > > Instead, user-space application records the array index when querying > the SAR > capability. When set, the nested array index will be used to set the > power. > This requires user-space has a strict mapping of index. and > NL80211_ATTR_IFINDEX > is to be removed. Wait, what? The IFINDEX is still required, that identifies the interface - though it probably shouldn't be required, this should be per wiphy, so you could also use ATTR_WIPHY_IDX? You're thinking of ... something else. NL80211_SAR_ATTR_SPECS_FREQ_RANGE_INDEX perhaps? johannes