mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
c4162a3ac0
commit
22cb0a7581
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue