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
This commit is contained in:
bings 2020-06-05 18:28:20 +08:00 • committed by nshrivas
commit 22cb0a7581

View file

@ -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