qcacmn: Add support to send RX stats to framework

As a part of the cfg80211_get_station command, the driver sends TX stats
(tx rate, MCS index, NSS and flags). Currently there is no support to
send the similar RX stats.

Add support to send RX stats to the framework.

Change-Id: Ic66596d118ad1395706db7638da1b4fdef7dc2d5
CRs-Fixed: 2303308
This commit is contained in:
Sourav Mohapatra
2018-08-07 18:10:31 +05:30
committed by nshrivas
parent 0c88e0f704
commit 23310e82bb
2 changed files with 2 additions and 0 deletions

View File

@@ -303,6 +303,7 @@ struct stats_event {
uint32_t num_chain_rssi_stats; uint32_t num_chain_rssi_stats;
struct chain_rssi_event *vdev_chain_rssi; struct chain_rssi_event *vdev_chain_rssi;
uint32_t tx_rate; uint32_t tx_rate;
uint32_t rx_rate;
enum tx_rate_info tx_rate_flags; enum tx_rate_info tx_rate_flags;
}; };

View File

@@ -571,6 +571,7 @@ tgt_mc_cp_stats_prepare_n_send_raw_station_stats(struct wlan_objmgr_psoc *psoc,
* it in units of 500kbps which is expected by UMAC * it in units of 500kbps which is expected by UMAC
*/ */
info.tx_rate = peer_mc_stats->tx_rate / 500; info.tx_rate = peer_mc_stats->tx_rate / 500;
info.rx_rate = peer_mc_stats->rx_rate / 500;
wlan_cp_stats_peer_obj_unlock(peer_cp_stats_priv); wlan_cp_stats_peer_obj_unlock(peer_cp_stats_priv);
end: end: