diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index d1e153e..cca0c0d 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -2014,6 +2014,9 @@ void rtw_cfg80211_indicate_scan_done(_adapter *adapter, bool aborted) { struct rtw_wdev_priv *pwdev_priv = adapter_wdev_data(adapter); _irqL irqL; +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)) + struct cfg80211_scan_info info; +#endif // (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)) _enter_critical_bh(&pwdev_priv->scan_req_lock, &irqL); if (pwdev_priv->scan_request != NULL) { @@ -2028,7 +2031,13 @@ void rtw_cfg80211_indicate_scan_done(_adapter *adapter, bool aborted) } else { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)) + memset(&info, 0, sizeof(info)); + info.aborted = aborted; + cfg80211_scan_done(pwdev_priv->scan_request, &info); +#else // (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)) cfg80211_scan_done(pwdev_priv->scan_request, aborted); +#endif // (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)) } pwdev_priv->scan_request = NULL;