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
This commit is contained in:
Srinivas Girigowda 2020-03-03 16:45:46 -08:00 • committed by nshrivas
commit 1129ba43a7

View file

@ -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,