qcacmn: Correct the offsets & byte cnt computation in HTT stats
Offsets used by host for HTT stats are not aligned as per the structure declaration given in file htt.h . Make change to use the correct offsets to get the correct stats. Also make change for byte count computation. Also make cleanup changes for FR65817. Change-Id: I8bc6164cc4994c49536d7277779f25b258be1592 CRs-Fixed: 3082742
This commit is contained in:

committed by
Madan Koyyalamudi

父節點
95cb0e103f
當前提交
21fb667866
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -147,12 +148,12 @@ void htt_htc_pkt_pool_free(struct htt_soc *soc);
|
||||
#define HTT_VDEV_STATS_TLV_RX_PKT_CNT_OFFSET 4
|
||||
#define HTT_VDEV_STATS_TLV_TX_SUCCESS_BYTE_CNT_OFFSET 6
|
||||
#define HTT_VDEV_STATS_TLV_TX_SUCCESS_PKT_CNT_OFFSET 8
|
||||
#define HTT_VDEV_STATS_TLV_TX_RETRY_BYTE_CNT_OFFSET 10
|
||||
#define HTT_VDEV_STATS_TLV_TX_RETRY_PKT_CNT_OFFSET 12
|
||||
#define HTT_VDEV_STATS_TLV_TX_DROP_BYTE_CNT_OFFSET 14
|
||||
#define HTT_VDEV_STATS_TLV_TX_DROP_PKT_CNT_OFFSET 16
|
||||
#define HTT_VDEV_STATS_TLV_TX_AGE_OUT_BYTE_CNT_OFFSET 18
|
||||
#define HTT_VDEV_STATS_TLV_TX_AGE_OUT_PKT_CNT_OFFSET 20
|
||||
#define HTT_VDEV_STATS_TLV_TX_RETRY_PKT_CNT_OFFSET 10
|
||||
#define HTT_VDEV_STATS_TLV_TX_DROP_PKT_CNT_OFFSET 12
|
||||
#define HTT_VDEV_STATS_TLV_TX_AGE_OUT_PKT_CNT_OFFSET 14
|
||||
#define HTT_VDEV_STATS_TLV_TX_RETRY_BYTE_CNT_OFFSET 16
|
||||
#define HTT_VDEV_STATS_TLV_TX_DROP_BYTE_CNT_OFFSET 18
|
||||
#define HTT_VDEV_STATS_TLV_TX_AGE_OUT_BYTE_CNT_OFFSET 20
|
||||
|
||||
#define HTT_VDEV_STATS_GET_INDEX(index) \
|
||||
HTT_VDEV_STATS_TLV_##index##_OFFSET
|
||||
|
Reference in New Issue
Block a user