diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 402099d257e8..bdfb9e500b0c 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -14961,7 +14961,8 @@ hdd_wiphy_set_max_sched_scans(struct wiphy *wiphy, uint8_t max_scans) * * Return: None */ -#if defined(CFG80211_REPORT_BETTER_BSS_IN_SCHED_SCAN) +#if defined(CFG80211_REPORT_BETTER_BSS_IN_SCHED_SCAN) || \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) static void wlan_hdd_cfg80211_add_connected_pno_support(struct wiphy *wiphy) { wiphy_ext_feature_set(wiphy,