Explorar el Código

qcacld-3.0: Get each link FCS and MPDU stats

To fill and send each link FCS and MPDU stats, change
the function argument of hdd_fill_fcs_and_mpdu_count()
to link info pointer instead of adapter.
Existing references are changed to deflink.

Change-Id: I208dd3a8fa5e6e9ddeb413d0bbc37341319b1582
CRs-Fixed: 3464269
Vinod Kumar Pirla hace 2 años
padre
commit
071b080f83
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      core/hdd/src/wlan_hdd_stats.c

+ 5 - 5
core/hdd/src/wlan_hdd_stats.c

@@ -6069,17 +6069,17 @@ hdd_wlan_fill_per_chain_rssi_stats(struct station_info *sinfo,
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)) || \
 	defined(CFG80211_RX_FCS_ERROR_REPORTING_SUPPORT)
-static void hdd_fill_fcs_and_mpdu_count(struct hdd_adapter *adapter,
+static void hdd_fill_fcs_and_mpdu_count(struct wlan_hdd_link_info *link_info,
 					struct station_info *sinfo)
 {
-	sinfo->rx_mpdu_count = adapter->deflink->hdd_stats.peer_stats.rx_count;
-	sinfo->fcs_err_count = adapter->deflink->hdd_stats.peer_stats.fcs_count;
+	sinfo->rx_mpdu_count = link_info->hdd_stats.peer_stats.rx_count;
+	sinfo->fcs_err_count = link_info->hdd_stats.peer_stats.fcs_count;
 	hdd_debug("RX mpdu count %d fcs_err_count %d",
 		  sinfo->rx_mpdu_count, sinfo->fcs_err_count);
 	sinfo->filled |= HDD_INFO_FCS_ERROR_COUNT | HDD_INFO_RX_MPDUS;
 }
 #else
-static void hdd_fill_fcs_and_mpdu_count(struct hdd_adapter *adapter,
+static void hdd_fill_fcs_and_mpdu_count(struct wlan_hdd_link_info *link_info,
 					struct station_info *sinfo)
 {
 }
@@ -6577,7 +6577,7 @@ static int wlan_hdd_get_sta_stats(struct hdd_adapter *adapter,
 		/* Keep GUI happy */
 		return 0;
 
-	hdd_fill_fcs_and_mpdu_count(adapter, sinfo);
+	hdd_fill_fcs_and_mpdu_count(adapter->deflink, sinfo);
 
 	hdd_wlan_fill_per_chain_rssi_stats(sinfo, adapter->deflink);