From bcb4c0db1ca41cc5f2c55086f44ed6c8320e70c8 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Wed, 29 Apr 2020 10:41:46 +0530 Subject: [PATCH] qcacld-3.0: Reject set_nud_stats request during roaming Set_nud_stats request is received at driver when roaming is in progress. WMI command sent for this request causes an assert in firmware. Fix is to reject set_nud_stats request received during roaming. Change-Id: I41e3b665ef02abcac5b59ce151c3938497be6283 CRs-Fixed: 2674624 --- core/hdd/src/wlan_hdd_cfg80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 08e6ce1bd074..a6485d597a90 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -12710,6 +12710,9 @@ static int __wlan_hdd_cfg80211_set_nud_stats(struct wiphy *wiphy, return 0; } + if (hdd_is_roaming_in_progress(hdd_ctx)) + return -EINVAL; + err = wlan_cfg80211_nla_parse(tb, STATS_SET_MAX, data, data_len, qca_wlan_vendor_set_nud_stats_policy); if (err) {