Ver código fonte

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
Anish Nataraj 7 anos atrás
pai
commit
0573462cb2
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      dp/wifi3.0/dp_internal.h

+ 6 - 0
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); \