diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 1cdf6287c74c..dd4d1c2ada5f 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6982,7 +6982,10 @@ bool hdd_is_interface_up(struct hdd_adapter *adapter) #if defined CFG80211_CONNECT_BSS || \ (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)) #if defined CFG80211_CONNECT_TIMEOUT_REASON_CODE || \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) + (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) || \ + (defined(WLAN_FEATURE_FILS_SK) && \ + (defined(CFG80211_CONNECT_DONE))) + /** * hdd_convert_timeout_reason() - Convert to kernel specific enum * @timeout_reason: reason for connect timeout @@ -7006,7 +7009,10 @@ static enum nl80211_timeout_reason hdd_convert_timeout_reason( return NL80211_TIMEOUT_UNSPECIFIED; } } +#endif +#if defined CFG80211_CONNECT_TIMEOUT_REASON_CODE || \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) /** * hdd_cfg80211_connect_timeout() - API to send connection timeout reason * @dev: network device