From a629409047c4e3dfe13f94fe3f2e57348102f0c9 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Fri, 24 Jan 2020 17:59:39 +0530 Subject: [PATCH] Add vendor interface QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT This commit introduces the vendor event QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT. Host drivers can request user space application to set SAR power limits with this event. Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 3e0d61a55..c24708f7b 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -617,6 +617,14 @@ enum qca_radiotap_vendor_ids { * association when in disconnected state. For AP mode, only information * of the currently connected stations is available. This command uses * attributes defined in enum qca_wlan_vendor_attr_get_sta_info. + * + * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event. + * Host drivers can request the user space entity to set the SAR power + * limits with this event. Accordingly, the user space entity is expected + * to set the SAR power limits. Host drivers can retry this event to the + * user space for the SAR power limits configuration from user space. If + * the driver does not get the SAR power limits from user space for all + * the retried attempts, it can configure a default SAR power limit. */ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, @@ -793,6 +801,7 @@ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, + QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, }; enum qca_wlan_vendor_attr {