Bläddra i källkod

qcacld-3.0: report cca statistics per wdev

In AP+AP mode, only query the first AP cca statistics, the second AP
cca statistics also can be captured in console, it's wrong.

Fix is to report cca statistics per wdev.

Change-Id: I18a0ae6d2560782e681209ff56c9fb2370a1ace9
CRs-Fixed: 2871555
Huashan Qu 3 år sedan
förälder
incheckning
7bbf6d94c3
1 ändrade filer med 5 tillägg och 4 borttagningar
  1. 5 4
      core/hdd/src/wlan_hdd_medium_assess.c

+ 5 - 4
core/hdd/src/wlan_hdd_medium_assess.c

@@ -142,10 +142,11 @@ static void hdd_cca_notification_cb(uint8_t vdev_id,
 		return;
 	}
 
-	event = cfg80211_vendor_event_alloc(hdd_ctx->wiphy, NULL,
-				  get_cca_report_len(),
-				  QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS_INDEX,
-				  GFP_KERNEL);
+	event = cfg80211_vendor_event_alloc(
+				hdd_ctx->wiphy, &adapter->wdev,
+				get_cca_report_len(),
+				QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS_INDEX,
+				GFP_KERNEL);
 	if (!event) {
 		hdd_err("cfg80211_vendor_event_alloc failed");
 		return;