qcacmn: add 11be TX/RX rate statistic support
Currently 11be msdu rate statistic is not supported yet. Another issue is: HW reported pkt type value 6, while host SW defined 11be type DOT11_BE (value 5), they are not matching. DOT11_BE value 5 is referred in monitor mode and otherwhere, so do map and conversion in host sw side. Change-Id: Ic5c2dd2a35cbe0ecd6430f007b6e7e02ece40998 CRs-Fixed: 3230900
This commit is contained in:

committed by
Madan Koyyalamudi

父節點
56d67b3e32
當前提交
9d2b26795a
@@ -4034,42 +4034,20 @@ static inline void
|
||||
dp_tx_update_peer_extd_stats(struct hal_tx_completion_status *ts,
|
||||
struct dp_txrx_peer *txrx_peer)
|
||||
{
|
||||
uint8_t mcs, pkt_type;
|
||||
uint8_t mcs, pkt_type, dst_mcs_idx;
|
||||
uint8_t retry_threshold = txrx_peer->mpdu_retry_threshold;
|
||||
|
||||
mcs = ts->mcs;
|
||||
pkt_type = ts->pkt_type;
|
||||
/* do HW to SW pkt type conversion */
|
||||
pkt_type = (pkt_type >= HAL_DOT11_MAX ? DOT11_MAX :
|
||||
hal_2_dp_pkt_type_map[pkt_type]);
|
||||
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[MAX_MCS - 1], 1,
|
||||
((mcs >= MAX_MCS_11A) && (pkt_type == DOT11_A)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[mcs], 1,
|
||||
((mcs < (MAX_MCS_11A)) && (pkt_type == DOT11_A)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[MAX_MCS - 1], 1,
|
||||
((mcs >= MAX_MCS_11B) && (pkt_type == DOT11_B)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[mcs], 1,
|
||||
((mcs < MAX_MCS_11B) && (pkt_type == DOT11_B)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[MAX_MCS - 1], 1,
|
||||
((mcs >= MAX_MCS_11A) && (pkt_type == DOT11_N)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[mcs], 1,
|
||||
((mcs < MAX_MCS_11A) && (pkt_type == DOT11_N)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[MAX_MCS - 1], 1,
|
||||
((mcs >= MAX_MCS_11AC) && (pkt_type == DOT11_AC)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[mcs], 1,
|
||||
((mcs < MAX_MCS_11AC) && (pkt_type == DOT11_AC)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[MAX_MCS - 1], 1,
|
||||
((mcs >= (MAX_MCS - 1)) && (pkt_type == DOT11_AX)));
|
||||
DP_PEER_EXTD_STATS_INCC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[mcs], 1,
|
||||
((mcs < (MAX_MCS - 1)) && (pkt_type == DOT11_AX)));
|
||||
dst_mcs_idx = dp_get_mcs_array_index_by_pkt_type_mcs(pkt_type, mcs);
|
||||
if (MCS_INVALID_ARRAY_INDEX != dst_mcs_idx)
|
||||
DP_PEER_EXTD_STATS_INC(txrx_peer,
|
||||
tx.pkt_type[pkt_type].mcs_count[dst_mcs_idx],
|
||||
1);
|
||||
|
||||
DP_PEER_EXTD_STATS_INC(txrx_peer, tx.sgi_count[ts->sgi], 1);
|
||||
DP_PEER_EXTD_STATS_INC(txrx_peer, tx.bw[ts->bw], 1);
|
||||
|
Reference in New Issue
Block a user