瀏覽代碼

qcacld-3.0: Send signed rssi for SAP big data stats

Add changes to send signed rssi value to user space as part
of the SAP big data stats command in disconnected case
to maintain uniformity with the connected case.

Change-Id: I8c48ff00ead7728db76ee73176bf82443dea4836
CRs-Fixed: 3567295
Asutosh Mohapatra 1 年之前
父節點
當前提交
0005d2bf45
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/hdd/src/wlan_hdd_station_info.c

+ 2 - 2
core/hdd/src/wlan_hdd_station_info.c

@@ -1154,7 +1154,7 @@ static int32_t hdd_add_sta_info_sap(struct sk_buff *skb, int8_t rssi,
 		goto fail;
 
 	if (nla_put_u8(skb, NL80211_STA_INFO_SIGNAL,
-		       rssi - HDD_NOISE_FLOOR_DBM)) {
+		       rssi)) {
 		hdd_err("put fail");
 		goto fail;
 	}
@@ -1457,7 +1457,7 @@ static int hdd_get_cached_station_remote(struct hdd_context *hdd_ctx,
 		"Remote STA Info:: freq:%d, RSSI:%d, Tx NSS:%d, Reason code:%d,"
 		"capability:0x%x, Supported mode:%d, chan_width:%d, Tx rate:%d,"
 		"Rx rate:%d, dot11mode:%d",
-		stainfo->freq, stainfo->rssi - HDD_NOISE_FLOOR_DBM,
+		stainfo->freq, stainfo->rssi,
 		stainfo->nss, stainfo->reason_code, stainfo->capability,
 		stainfo->support_mode, channel_width, stainfo->tx_rate,
 		stainfo->rx_rate, stainfo->dot11_mode);