From b6f487bf7cb152eb3643e6c87dac20b37919feab Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Thu, 4 Jul 2019 11:20:37 +0530 Subject: [PATCH] qcacld-3.0: Use correct BIT operation for staflags While filling station info rx_mpdus and fcs_error count are getting filled and corresponding flags are getting set. These flags are set using BIT macro which operates only on integers and will cause overflow on 32 bit machine if the bit operation is of more than 32 bit. To resolve above issue use BIT_ULL for bit operations on station flags. Change-ID: Ia7263f0e86a1fbdf477491b84bf94d5609781b00 CRs-Fixed: 2484159 --- core/hdd/src/wlan_hdd_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 7fa9caf8dd9c..e68e618bca33 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -74,8 +74,8 @@ #define HDD_INFO_RX_BYTES64 BIT(NL80211_STA_INFO_RX_BYTES64) #define HDD_INFO_INACTIVE_TIME BIT(NL80211_STA_INFO_INACTIVE_TIME) #define HDD_INFO_CONNECTED_TIME BIT(NL80211_STA_INFO_CONNECTED_TIME) -#define HDD_INFO_RX_MPDUS BIT(NL80211_STA_INFO_RX_MPDUS) -#define HDD_INFO_FCS_ERROR_COUNT BIT(NL80211_STA_INFO_FCS_ERROR_COUNT) +#define HDD_INFO_RX_MPDUS BIT_ULL(NL80211_STA_INFO_RX_MPDUS) +#define HDD_INFO_FCS_ERROR_COUNT BIT_ULL(NL80211_STA_INFO_FCS_ERROR_COUNT) #endif /* kernel version less than 4.0.0 && no_backport */ /* 11B, 11G Rate table include Basic rate and Extended rate