ソースを参照

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
Yeshwanth Sriram Guntuka 5 年 前
コミット
bcb4c0db1c
1 ファイル変更3 行追加0 行削除
  1. 3 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 3 - 0
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) {