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) {