Browse Source

qcacld-3.0: Get RCPI value in cfg80211 get_station callback

Currently, API to get RCPI value is wlan_hdd_get_rcpi(),
invoke this API to log computed RCPI.

Change-Id: I99e137e37a0c2c4a94f37009b6c00d992c440ec6
CRs-Fixed: 1115232
Rajeev Kumar Sirasanagandla 8 years ago
parent
commit
b13b777c32
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/hdd/src/wlan_hdd_stats.c

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

@@ -3920,6 +3920,7 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
 
 	uint32_t vht_mcs_map;
 	enum data_rate_11ac_max_mcs vht_max_mcs;
+	int32_t rcpi_value;
 
 	ENTER_DEV(dev);
 
@@ -3960,6 +3961,10 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
 		return 0;
 	}
 
+	if (hdd_ctx->rcpi_enabled)
+		wlan_hdd_get_rcpi(adapter, (uint8_t *)mac, &rcpi_value,
+				  RCPI_MEASUREMENT_TYPE_AVG_MGMT);
+
 	wlan_hdd_get_station_stats(adapter);
 
 	if (adapter->hdd_stats.summary_stat.rssi)