From 1129ba43a77bb48cc0179e6df3872ff5ad6a415e Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Tue, 3 Mar 2020 16:45:46 -0800 Subject: [PATCH] qcacld-3.0: Add policy attribute to SUBCMD_SET_SAR_LIMITS According to new changes in kernel 5.2 version onwards, driver has to provide the policy for a NL command to be verified against while registering wiphy to the kernel. To satisfy kernel 5.2 requirement add policy to following vendor command as part of this change: QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS Change-Id: Ic02df66a2937aa3e1fd6b6193fbe31b7b4141ba4 CRs-Fixed: 2634250 --- core/hdd/src/wlan_hdd_cfg80211.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 44d2f2a1dee8..26695d9ac98e 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -14913,7 +14913,9 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = { .info.subcmd = QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS, .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_RUNNING, - .doit = wlan_hdd_cfg80211_set_sar_power_limits + .doit = wlan_hdd_cfg80211_set_sar_power_limits, + vendor_command_policy(sar_limits_policy, + QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX) }, { .info.vendor_id = QCA_NL80211_VENDOR_ID,