Browse Source

qcacld-3.0: Add debug logs for get station stats

Add debug prints in __wlan_hdd_cfg80211_get_station function to
identify on which link the stats was requested by userspace.

Change-Id: Idb57419adbf68b1e0a60827d16681c330dc27152
CRs-Fixed: 3579869
Aditya Kodukula 1 year ago
parent
commit
95948e947f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      core/hdd/src/wlan_hdd_stats.c

+ 4 - 1
core/hdd/src/wlan_hdd_stats.c

@@ -7449,6 +7449,8 @@ static int wlan_hdd_get_sta_stats(struct wlan_hdd_link_info *link_info,
 
 	hdd_wlan_fill_per_chain_rssi_stats(sinfo, link_info);
 
+	hdd_nofl_debug("Sending station stats for link " QDF_MAC_ADDR_FMT,
+		       QDF_MAC_ADDR_REF(mac));
 	hdd_exit();
 
 	return 0;
@@ -7738,7 +7740,8 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
 		}
 
 		if (!wlan_hdd_send_mlo_aggregated_stats(link_info, mac)) {
-			hdd_debug("Sending Assoc Link stats");
+			hdd_nofl_debug("Station stats requested for vdev_[%u]",
+				       link_info->vdev_id);
 			return wlan_hdd_get_sta_stats(link_info,
 						      mac, sinfo);
 		}