mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
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
This commit is contained in:
parent
471b552ca5
commit
0573462cb2
1 changed files with 6 additions and 0 deletions
|
|
@ -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); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue