From 9ce83d40151816d948fa73da84ab5ba3f1c7beb7 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Wed, 2 Sep 2020 10:26:22 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 1f596eb79c9a..bfa2c5d1f30b 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -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 */