From e07fbb4a690dfdd7ed8c79d1d73996fc5af30be7 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 19 Dec 2017 08:24:15 -0800 Subject: qcacld-3.0: Define a QCA vendor command to retrieve SAR Power limits Implement a command to retrieve the current SAR power limits. Change-Id: I599b96b7efd26ca109ebdddfe1f064c649af5c95 CRs-Fixed: 2161443 --- uapi/linux/qca_vendor.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'uapi/linux') diff --git a/uapi/linux/qca_vendor.h b/uapi/linux/qca_vendor.h index 50868fd45136..5bef49f6862a 100644 --- a/uapi/linux/qca_vendor.h +++ b/uapi/linux/qca_vendor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -233,6 +233,12 @@ * information indicating the reason that triggered this detection. The * attributes for this command are defined in * enum qca_wlan_vendor_attr_hang. + * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate + * (SAR) power limits. This is a companion to the command + * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the + * settings currently in use. The attributes returned by this command are + * defined by enum qca_vendor_attr_sar_limits. + * */ enum qca_nl80211_vendor_subcmds { @@ -430,6 +436,7 @@ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, QCA_NL80211_VENDOR_SUBCMD_HANG = 157, + QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, }; /** @@ -4528,7 +4535,9 @@ enum qca_wlan_vendor_tdls_trigger_mode { * * This enumerates the valid set of values that may be supplied for * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of - * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command. + * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in + * the response to an instance of the + * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. */ enum qca_vendor_attr_sar_limits_selections { QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, @@ -4552,7 +4561,8 @@ enum qca_vendor_attr_sar_limits_selections { * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor - * command. + * command or in the response to an instance of the + * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. */ enum qca_vendor_attr_sar_limits_spec_modulations { QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, @@ -4609,7 +4619,8 @@ enum qca_vendor_attr_sar_limits_spec_modulations { * value to specify the actual power limit value in steps of 0.5 * dbm. * - * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS. + * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS + * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. */ enum qca_vendor_attr_sar_limits { QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, -- cgit v1.2.3