qcacmn: Add configurable threshold values

Introduce configurable threshold values to
increment MPDU retry count by transmit_cnt / threshold.

Change-Id: I1c039ff76854e18bea5a8d99d171936557d1c6bf
CRs-Fixed: 3210735
This commit is contained in:
Amit Mehta
2022-05-31 03:42:16 -07:00
committed by Madan Koyyalamudi
parent 8969fe6019
commit 1507b1cde3
6 changed files with 84 additions and 3 deletions

View File

@@ -7088,6 +7088,12 @@ static QDF_STATUS dp_txrx_peer_attach(struct dp_soc *soc, struct dp_peer *peer)
txrx_peer->vdev = peer->vdev;
pdev = peer->vdev->pdev;
/* Initialize MPDU success count with retry update thresholds */
txrx_peer->mpdu_retry_threshold_1 =
soc->wlan_cfg_ctx->mpdu_retry_threshold_1;
txrx_peer->mpdu_retry_threshold_2 =
soc->wlan_cfg_ctx->mpdu_retry_threshold_2;
DP_STATS_INIT(txrx_peer);
dp_wds_ext_peer_init(txrx_peer);