Change attribute type in policy to NLA_UNSPEC, so nla API will take a more strict length check. Change-Id: I9faf60702a9efba5e76fb1e82c7b020812687cad CRs-Fixed: 2092378
@@ -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] = {
.len = QDF_IPV4_ADDR_SIZE
[PARAM_IPV6_ADDR] = {
.len = QDF_IPV6_ADDR_SIZE
}
};