@@ -488,11 +488,11 @@ mt7915_tx_stats_show(struct seq_file *file, void *data)
/* Tx amsdu info */
seq_puts(file, "Tx MSDU statistics:\n");
- for (i = 0, n = 0; i < ARRAY_SIZE(mib->amsdu_pack_stats); i++)
- n += mib->amsdu_pack_stats[i];
+ for (i = 0, n = 0; i < ARRAY_SIZE(mib->tx_amsdu_pack_stats); i++)
+ n += mib->tx_amsdu_pack_stats[i];
- for (i = 0; i < ARRAY_SIZE(mib->amsdu_pack_stats); i++) {
- long si = mib->amsdu_pack_stats[i];
+ for (i = 0; i < ARRAY_SIZE(mib->tx_amsdu_pack_stats); i++) {
+ long si = mib->tx_amsdu_pack_stats[i];
seq_printf(file, "AMSDU pack count of %d MSDU in TXD: %ld ",
i + 1, si);
@@ -2204,8 +2204,8 @@ mt7915_mac_update_stats(struct mt7915_phy *phy)
}
/* Tx amsdu info (pack-count histogram) */
- for (i = 0; i < ARRAY_SIZE(mib->amsdu_pack_stats); i++)
- mib->amsdu_pack_stats[i] += mt76_rr(dev, MT_PLE_AMSDU_PACK_MSDU_CNT(i));
+ for (i = 0; i < ARRAY_SIZE(mib->tx_amsdu_pack_stats); i++)
+ mib->tx_amsdu_pack_stats[i] += mt76_rr(dev, MT_PLE_AMSDU_PACK_MSDU_CNT(i));
}
@@ -1255,7 +1255,7 @@ void mt7915_get_et_stats(struct ieee80211_hw *hw,
/* Tx amsdu info (pack-count histogram) */
for (i = 0; i < 8; i++)
- data[ei++] = mib->amsdu_pack_stats[i];
+ data[ei++] = mib->tx_amsdu_pack_stats[i];
/* rx counters */
data[ei++] = mib->rx_fifo_full_cnt;
@@ -147,6 +147,7 @@ struct mib_stats {
u32 tx_rwp_fail_cnt;
u32 tx_rwp_need_cnt;
+ u32 tx_amsdu_pack_stats[8]; /* histogram of how many sub-frames in amsdu */
/* rx stats */
u32 rx_fifo_full_cnt;
@@ -162,8 +163,6 @@ struct mib_stats {
u32 rx_pfdrop_cnt;
u32 rx_vec_queue_overflow_drop_cnt;
u32 rx_ba_cnt;
-
- u32 amsdu_pack_stats[8]; /* histogram of how many sub-frames in amsdu */
};
struct mt7915_hif {