From c42c2e7a3226093bf0f66f2299fbc8da63782d73 Mon Sep 17 00:00:00 2001 From: Lin Bai Date: Wed, 27 Apr 2022 11:48:05 +0800 Subject: [PATCH] qcacld-3.0: Enable RX FCS reporting fcs_err_count member of structure station_info introduced from kernel 4.20. Enable it accordingly from 4.20. Change-Id: Ic373cb4f95a9698c8ef25c829f39bd21cd8f4a26 CRs-Fixed: 3183697 --- core/hdd/src/wlan_hdd_stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index fbd7791e09fa..af9e061c50c0 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -5641,7 +5641,8 @@ void hdd_wlan_fill_per_chain_rssi_stats(struct station_info *sinfo, } #endif -#if defined(CFG80211_RX_FCS_ERROR_REPORTING_SUPPORT) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)) || \ + defined(CFG80211_RX_FCS_ERROR_REPORTING_SUPPORT) static void hdd_fill_fcs_and_mpdu_count(struct hdd_adapter *adapter, struct station_info *sinfo) {