From cb25e2f14a6eb76e381b4069a3c5d7121bb084e2 Mon Sep 17 00:00:00 2001 From: spuligil Date: Mon, 6 Aug 2018 10:16:25 -0700 Subject: [PATCH] fw-api: CL 5111624 - update fw common interface files HTT stats: correct the placement of num_bins field Move num_bins field from after variable-length array to before.This introduces a backwards-incompatibility in the two affected TLVs, but this backwards-incompatibility is an acceptable cost for fixing the TLV printout.Also, add/remove \n from HTT stats printouts, to end up with just one \n per TLV printout Change-Id: I5d57ea1d7f60d69b354df517ff4a771bee79e321 CRs-Fixed: 2262693 --- fw/htt_stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fw/htt_stats.h b/fw/htt_stats.h index 447d0f0b36ef..1da4a55e849b 100644 --- a/fw/htt_stats.h +++ b/fw/htt_stats.h @@ -613,8 +613,8 @@ typedef struct { */ typedef struct { htt_tlv_hdr_t tlv_hdr; - A_UINT32 tried_mpdu_cnt_hist[1]; /* HTT_TX_PDEV_TRIED_MPDU_CNT_HIST */ A_UINT32 hist_bin_size; + A_UINT32 tried_mpdu_cnt_hist[1]; /* HTT_TX_PDEV_TRIED_MPDU_CNT_HIST */ } htt_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v; /* STATS_TYPE: HTT_DBG_EXT_STATS_PDEV_TX @@ -1384,9 +1384,9 @@ typedef struct { * */ typedef struct { htt_tlv_hdr_t tlv_hdr; + A_UINT32 hist_bin_size; /* Histogram of number of mpdus on tried mpdu */ A_UINT32 tried_mpdu_cnt_hist[1]; /* HTT_TX_HWQ_TRIED_MPDU_CNT_HIST */ - A_UINT32 hist_bin_size; } htt_tx_hwq_tried_mpdu_cnt_hist_tlv_v; #define HTT_TX_HWQ_TXOP_USED_CNT_HIST_TLV_SZ(_num_elems) (sizeof(A_UINT32) * (_num_elems))