From 0573462cb20f9565ecd4f9ffb403eeb488f65d3b Mon Sep 17 00:00:00 2001 From: Anish Nataraj Date: Wed, 21 Mar 2018 19:36:42 +0530 Subject: [PATCH] qcacmn: Aggregate peer rssi and rx rate stats peer rssi and rx rate stats counters aggregated to vdev/pdev level so that athstats shows proper values Change-Id: I4d4a28006c30b1f2eba77bbeaddb9723626166db --- dp/wifi3.0/dp_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index c06df0ccda68..115d56cd8672 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/dp/wifi3.0/dp_internal.h @@ -123,6 +123,10 @@ while (0) DP_STATS_AGGR(_handle_a, _handle_b, _field.bytes);\ } +#define DP_STATS_UPD_STRUCT(_handle_a, _handle_b, _field) \ +{ \ + _handle_a->stats._field = _handle_b->stats._field; \ +} #define DP_HIST_INIT() \ uint32_t num_of_packets[MAX_PDEV_CNT] = {0}; @@ -289,6 +293,8 @@ while (0) DP_STATS_AGGR(_tgtobj, _srcobj, tx.dropped.age_out); \ \ DP_STATS_AGGR(_tgtobj, _srcobj, rx.err.mic_err); \ + DP_STATS_UPD_STRUCT(_tgtobj, _srcobj, rx.rssi); \ + DP_STATS_UPD_STRUCT(_tgtobj, _srcobj, rx.rx_rate); \ DP_STATS_AGGR(_tgtobj, _srcobj, rx.err.decrypt_err); \ DP_STATS_AGGR(_tgtobj, _srcobj, rx.non_ampdu_cnt); \ DP_STATS_AGGR(_tgtobj, _srcobj, rx.ampdu_cnt); \