Browse Source

qcacld-3.0: Update ratemask command policy to NLA_NESTED

Update wlan_hdd_set_ratemask_param_policy nl policy from
QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST to NLA_NESTED
in order to allow use array indices as nested attribute.

Change-Id: I68abd4c920dba625bea0b37f542ccb748b35db39
CRs-Fixed: 3419294
Prasanna JS 2 years ago
parent
commit
016c20c61d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 2
core/hdd/src/wlan_hdd_cfg80211.c

@@ -6728,8 +6728,7 @@ wlan_hdd_cfg80211_set_ext_roam_params(struct wiphy *wiphy,
 #define RATEMASK_PARAMS_MAX QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX
 const struct nla_policy wlan_hdd_set_ratemask_param_policy[
 			RATEMASK_PARAMS_MAX + 1] = {
-	[QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST] =
-		VENDOR_NLA_POLICY_NESTED(wlan_hdd_set_ratemask_param_policy),
+	[QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST] = {.type = NLA_NESTED},
 	[QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE] = {.type = NLA_U8},
 	[QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP] = {.type = NLA_BINARY,
 					.len = RATEMASK_PARAMS_BITMAP_MAX},