mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacmn: Change the data type of average/roundup tx rate
The datatype of average and round up tx rate was uint32_t which truncates the upper byte of the average and round up tx rate value. changing the datatype of average and round up tx rate from uint32_t to uint64_t. Change-Id: I3809ba7cfc73ec0b4609981e70d57112ac958f33 CRs-Fixed: 2409751
This commit is contained in:
parent
cb4f428edc
commit
f7786d3822
3 changed files with 5 additions and 5 deletions
|
|
@ -65,14 +65,14 @@ enum CMN_BW_TYPES {
|
|||
#define DUMMY_MARKER 0
|
||||
#define DP_ATH_RATE_IN(c) (DP_ATH_EP_MUL((c), DP_ATH_RATE_EP_MULTIPLIER))
|
||||
|
||||
static inline int dp_ath_rate_lpf(int _d, int _e)
|
||||
static inline int dp_ath_rate_lpf(uint64_t _d, int _e)
|
||||
{
|
||||
_e = DP_ATH_RATE_IN((_e));
|
||||
return (((_d) != DUMMY_MARKER) ? ((((_d) << 3) + (_e) - (_d)) >> 3) :
|
||||
(_e));
|
||||
}
|
||||
|
||||
static inline int dp_ath_rate_out(int _i)
|
||||
static inline int dp_ath_rate_out(uint64_t _i)
|
||||
{
|
||||
int _mul = DP_ATH_RATE_EP_MULTIPLIER;
|
||||
|
||||
|
|
|
|||
|
|
@ -418,8 +418,8 @@ struct cdp_tx_stats {
|
|||
uint32_t mcast_last_tx_rate;
|
||||
uint32_t mcast_last_tx_rate_mcs;
|
||||
uint32_t last_per;
|
||||
uint32_t rnd_avg_tx_rate;
|
||||
uint32_t avg_tx_rate;
|
||||
uint64_t rnd_avg_tx_rate;
|
||||
uint64_t avg_tx_rate;
|
||||
uint32_t last_ack_rssi;
|
||||
uint32_t tx_bytes_success_last;
|
||||
uint32_t tx_data_success_last;
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ dp_tx_rate_stats_update(struct dp_peer *peer,
|
|||
struct cdp_tx_completion_ppdu_user *ppdu)
|
||||
{
|
||||
uint32_t ratekbps = 0;
|
||||
uint32_t ppdu_tx_rate = 0;
|
||||
uint64_t ppdu_tx_rate = 0;
|
||||
uint32_t rix;
|
||||
|
||||
if (!peer || !ppdu)
|
||||
|
|
|
|||
Loading…
Reference in a new issue