From 22cb0a7581ba47cfb18517a6967dba8b3ed31b4d Mon Sep 17 00:00:00 2001 From: bings Date: Fri, 5 Jun 2020 18:28:20 +0800 Subject: [PATCH] qcacld-3.0: fix hdd_convert_timeout_reason build error hdd_convert_timeout_reason is also used in hdd_connect_done. Define hdd_convert_timeout_reason when it is used. Change-Id: Ifa03959969474d9cafb1315d53b83cae21745280 CRs-Fixed: 2703672 --- core/hdd/src/wlan_hdd_main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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