From f99022aafbb704033ef608ced0f7238ed561725a Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Tue, 27 Apr 2021 10:49:47 -0700 Subject: [PATCH] qcacld-3.0: Add a missing policy attribute for set_wifi_config set_wifi_config vendor command is missing the policy configuration for the OPTIMIZED_POWER_MANAGEMENT attribute. Thus, add the attribute to set_wifi_config's policy table. Change-Id: Ia4d205ceea59a1d557bd646ff064ff340066c12a CRs-Fixed: 2933377 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index bed122221818..e4e13743197a 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -6998,6 +6998,8 @@ const struct nla_policy wlan_hdd_wifi_config_policy[ [QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH] = {.type = NLA_U8 }, [QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW] = {.type = NLA_U8 }, [QCA_WLAN_VENDOR_ATTR_CONFIG_NSS] = {.type = NLA_U8 }, + [QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT] = { + .type = NLA_U8 }, [QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE] = { .type = NLA_U8 }, [QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS] = {.type = NLA_U8 },