qcacmn: Update tx/rx bundle statistics for USB interface

Update tx/rx bundle statistics for USB interface.

Change-Id: Ia7951f9feb88ca28e055d9f32f0dfee65c7f0bf9
CRs-Fixed: 2571550
This commit is contained in:
Nirav Shah
2019-11-11 10:55:15 +05:30
committed by nshrivas
부모 c076051dff
커밋 eb26831637
4개의 변경된 파일37개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -295,8 +295,10 @@ htc_send_update_tx_bundle_stats(HTC_TARGET *target,
qdf_size_t data_len,
int TxCreditSize)
{
if ((data_len / TxCreditSize) <= HTC_MAX_MSG_PER_BUNDLE_TX)
target->tx_bundle_stats[(data_len / TxCreditSize) - 1]++;
int index = ((data_len + TxCreditSize - 1) / TxCreditSize) - 1;
if (index < HTC_MAX_MSG_PER_BUNDLE_TX)
target->tx_bundle_stats[index]++;
}
/**