Parcourir la source

qcacld-3.0: Change policy for QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG

Change attribute type in policy to NLA_UNSPEC, so nla API will take
a more strict length check.

Change-Id: I9faf60702a9efba5e76fb1e82c7b020812687cad
CRs-Fixed: 2092378
Zhang Qian il y a 7 ans
Parent
commit
6339310b98
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      core/hdd/src/wlan_hdd_subnet_detect.c

+ 3 - 3
core/hdd/src/wlan_hdd_subnet_detect.c

@@ -46,15 +46,15 @@
 static const struct nla_policy
 	policy[QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX + 1] = {
 		[PARAM_MAC_ADDR] = {
-				.type = NLA_BINARY,
+				.type = NLA_UNSPEC,
 				.len = QDF_MAC_ADDR_SIZE
 		},
 		[PARAM_IPV4_ADDR] = {
-				.type = NLA_BINARY,
+				.type = NLA_UNSPEC,
 				.len = QDF_IPV4_ADDR_SIZE
 		},
 		[PARAM_IPV6_ADDR] = {
-				.type = NLA_BINARY,
+				.type = NLA_UNSPEC,
 				.len = QDF_IPV6_ADDR_SIZE
 		}
 };