mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
c58548360f
commit
1129ba43a7
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue