qcacmn: Add support for average tx/rx rate
Apstats use to return last tx/rx rate for avg. tx/rx rates. This change updates the behavior to return average tx/rx rates. Change-Id: Idfff2ae9df7c5af1ef86ceb5688b1e01fd6dae21 CRs-Fixed: 3628056
This commit is contained in:

committed by
Rahul Choudhary

parent
d5578559ec
commit
d6ee46a496
@@ -1389,6 +1389,8 @@ enum cdp_peer_stats_type {
|
||||
cdp_peer_rx_flags,
|
||||
cdp_peer_rx_avg_snr,
|
||||
cdp_peer_rx_snr,
|
||||
cdp_peer_rx_avg_rate,
|
||||
cdp_peer_tx_avg_rate,
|
||||
/* Add enum for peer extd stats before this */
|
||||
cdp_peer_extd_stats_max,
|
||||
cdp_peer_stats_max = cdp_peer_extd_stats_max,
|
||||
@@ -1404,6 +1406,7 @@ typedef union cdp_peer_stats_buf {
|
||||
struct cdp_pkt_info tx_ucast;
|
||||
struct cdp_pkt_info tx_mcast;
|
||||
uint32_t tx_rate;
|
||||
uint32_t tx_rate_avg;
|
||||
uint32_t last_tx_rate;
|
||||
uint32_t tx_inactive_time;
|
||||
uint32_t tx_flags;
|
||||
@@ -1413,6 +1416,7 @@ typedef union cdp_peer_stats_buf {
|
||||
/* Rx types */
|
||||
struct cdp_pkt_info rx_ucast;
|
||||
uint32_t rx_rate;
|
||||
uint32_t rx_rate_avg;
|
||||
uint32_t last_rx_rate;
|
||||
uint32_t rx_ratecode;
|
||||
uint32_t rx_flags;
|
||||
|
Reference in New Issue
Block a user