Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1148699pxb; Fri, 6 Nov 2020 02:10:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsmbVpMPOcRaIXl6qHfqP6pE7ts5roYW9bHgr0qhcsY8JjA4QdEtikKc80zva4HrLaQ4/H X-Received: by 2002:a05:6402:1b19:: with SMTP id by25mr1230381edb.108.1604657400414; Fri, 06 Nov 2020 02:10:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604657400; cv=none; d=google.com; s=arc-20160816; b=Y9swkAKhamd/8COmsTEGG/KpQvuA+n2UKppM3WD4q4jqUrchBpUS+oFck+K3xJn917 2gyyX/pc3fDxv0i7VNVwqn4RoVtxhJ/f+aQFfjzfsnHUAeTmu36bJmBLRbnmJC2qdzGK G464eHIc1ejk0gYggO5Ph3MKmIK3DBnBWGzbt3LzO6cJhckgRVwDcxLb2APoMWziqD8T jEoD+eNU9OFtTmpnVdJA/2ZAyBlRqwOdvlP9YqTKkeNO06ORdxHNCMshkcCaVRZV9qdX hvQ7vQ3K4YIACxJtXWApewfBaZfQgx7DBGRfRG1C4c6kRcK62SUzGkpakz647sg6ZCVS o5SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=u2Ob3VZv+ZbAZQ2aoEo00iPxZZH19i4s3sD/Eoq7Ay0=; b=l4KNx9fs8NWaoQ6LACQ1TdfvW/N4/VMNrMDOpKa0VZ/U0yMPjg66AOtMn8+qC/DcJj goLWtvO/F6BoTZuXzbfbOahMYV+Pz2SdOFLh1Dnfxm4shzbaRiykeR3qBu4s4YepF+fU HMOZW7+im+N6OD5BG1fDVmQ/mkl38dZ290bBn/d8hEd4TiR7pu1R3tW3/+QnP7lnvaN9 C0GJaNwpfg3Nu5GF9o272j3pkkUw1YqMZiUBmFeHJdmiw+Kh1KqBgmnjkvhThLYsLQHI qyfl5dIL9oCsuLIUTHeRbpVmMJK37HsxfJ5Pc9L18MvfLd45i1HJ3BgGu1XeltA0tRNl HUQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DSzYAJWe; 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 e16si514516ejz.457.2020.11.06.02.09.34; Fri, 06 Nov 2020 02:10:00 -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=DSzYAJWe; 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 S1726740AbgKFKHU (ORCPT + 99 others); Fri, 6 Nov 2020 05:07:20 -0500 Received: from z5.mailgun.us ([104.130.96.5]:44563 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgKFKHT (ORCPT ); Fri, 6 Nov 2020 05:07:19 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604657238; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=u2Ob3VZv+ZbAZQ2aoEo00iPxZZH19i4s3sD/Eoq7Ay0=; b=DSzYAJWe6nW/VKrHw9MbBwzyxaQFLDcAGpGIaQilLPiQA76OUaYI7DFwtVGhXACEXYEwKmSZ FjcU6wmM9v4WGkBlRNkmfCz4T0m7r1HX+Z3ZSE4zE/vAZzVDnRtxoWyu49KDVIYhRao9p9t6 FnaifI+sg6XcELz2JOK7c/JiraM= 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-n07.prod.us-east-1.postgun.com with SMTP id 5fa520551f7506a99717156b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 06 Nov 2020 10:07:17 GMT Sender: cjhuang=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CB69AC433C8; Fri, 6 Nov 2020 10:07:16 +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,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from cjhuang-Inspiron-7590.qca.qualcomm.com (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: cjhuang) by smtp.codeaurora.org (Postfix) with ESMTPSA id DD39EC433C8; Fri, 6 Nov 2020 10:07:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DD39EC433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=cjhuang@codeaurora.org From: Carl Huang To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, briannorris@chromium.org, dianders@chromium.org, kuabhs@google.com Subject: [PATCH 0/3] add common API to configure SAR Date: Fri, 6 Nov 2020 05:07:05 -0500 Message-Id: <20201106100708.4609-1-cjhuang@codeaurora.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patchset is to add common API to configure SAR. The mechanism is wlan driver registers sar capability to wiphy and userspace queries it. Userspace then sets power limiation to wlan driver. Carl Huang (3): nl80211: add common API to configure SAR power limitations. mac80211: add ieee80211_set_sar_specs ath10k: allow dynamic SAR power limits via common API drivers/net/wireless/ath/ath10k/core.c | 16 +++ drivers/net/wireless/ath/ath10k/core.h | 3 + drivers/net/wireless/ath/ath10k/hw.h | 2 + drivers/net/wireless/ath/ath10k/mac.c | 221 ++++++++++++++++++++++++--------- include/net/cfg80211.h | 51 ++++++++ include/net/mac80211.h | 2 + include/uapi/linux/nl80211.h | 101 +++++++++++++++ net/mac80211/cfg.c | 12 ++ net/wireless/nl80211.c | 150 ++++++++++++++++++++++ net/wireless/rdev-ops.h | 12 ++ net/wireless/trace.h | 19 +++ 11 files changed, 530 insertions(+), 59 deletions(-) -- 2.7.4