qcacld-3.0: Set type to NLA_NESTED for DATA_PKT_INFO attribute

DATA_PKT_INFO attribute has type set to u32 in the
driver NL policy while wifihal has the type set to
NLA_NESTED. This results in the NUD stats set request
to not reach driver.

Fix is to set DATA_PKT_INFO attribute type to NLA_NESTED.

Change-Id: Iba8e69a1fc017df65f30b441e4d6d3862ffc2263
CRs-Fixed: 2765559
This commit is contained in:
Yeshwanth Sriram Guntuka 2020-09-02 10:26:22 +05:30 • committed by snandini
commit 9ce83d4015

View file

@ -13360,7 +13360,7 @@ const struct nla_policy
qca_wlan_vendor_set_nud_stats_policy[STATS_SET_MAX + 1] = {
[STATS_SET_START] = {.type = NLA_FLAG },
[STATS_GW_IPV4] = {.type = NLA_U32 },
[STATS_SET_DATA_PKT_INFO] = {.type = NLA_U32 },
[STATS_SET_DATA_PKT_INFO] = {.type = NLA_NESTED },
};
/* define short names for the global vendor params */