mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Fix compile error for cfg80211_sched_scan_results()
The 4.12 Linux kernel adds a request id parameter to cfg80211_sched_scan_results(). Add conditional compilation to provide the correct parameters based on the kernel version. Change-Id: I2008895e390af88af0b22df6bfd7ef753d25b419 CRs-Fixed: 2092070
This commit is contained in:
parent
3fb1504642
commit
5fbb1052ee
1 changed files with 15 additions and 1 deletions
|
|
@ -1539,6 +1539,20 @@ void wlan_hdd_inc_suspend_stats(hdd_context_t *hdd_ctx,
|
|||
wlan_hdd_print_suspend_fail_stats(hdd_ctx);
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
|
||||
static inline void
|
||||
hdd_sched_scan_results(struct wiphy *wiphy, uint64_t reqid)
|
||||
{
|
||||
cfg80211_sched_scan_results(wiphy);
|
||||
}
|
||||
#else
|
||||
static inline void
|
||||
hdd_sched_scan_results(struct wiphy *wiphy, uint64_t reqid)
|
||||
{
|
||||
cfg80211_sched_scan_results(wiphy, reqid);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* __wlan_hdd_cfg80211_resume_wlan() - cfg80211 resume callback
|
||||
* @wiphy: Pointer to wiphy
|
||||
|
|
@ -1639,7 +1653,7 @@ static int __wlan_hdd_cfg80211_resume_wlan(struct wiphy *wiphy)
|
|||
hdd_prevent_suspend_timeout(
|
||||
HDD_WAKELOCK_TIMEOUT_RESUME,
|
||||
WIFI_POWER_EVENT_WAKELOCK_RESUME_WLAN);
|
||||
cfg80211_sched_scan_results(pHddCtx->wiphy);
|
||||
hdd_sched_scan_results(pHddCtx->wiphy, 0);
|
||||
}
|
||||
|
||||
hdd_debug("cfg80211 scan result database updated");
|
||||
|
|
|
|||
Loading…
Reference in a new issue