--- a/amd64/src/wl/sys/wl_cfg80211_hybrid.c +++ b/amd64/src/wl/sys/wl_cfg80211_hybrid.c @@ -2387,7 +2387,15 @@ if (wl->scan_request) { WL_DBG(("%s: Aborting scan\n", __FUNCTION__)); +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)) + struct cfg80211_scan_info info = { + .aborted = true, + }; + + cfg80211_scan_done(wl->scan_request, &info); +#else cfg80211_scan_done(wl->scan_request, true); +#endif wl->scan_request = NULL; } @@ -2488,7 +2496,15 @@ scan_done_out: if (wl->scan_request) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)) + struct cfg80211_scan_info info = { + .aborted = false, + }; + + cfg80211_scan_done(wl->scan_request, &info); +#else cfg80211_scan_done(wl->scan_request, false); +#endif wl->scan_request = NULL; } rtnl_unlock(); @@ -2913,7 +2929,15 @@ s32 err = 0; if (wl->scan_request) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)) + struct cfg80211_scan_info info = { + .aborted = true, + }; + + cfg80211_scan_done(wl->scan_request, &info); +#else cfg80211_scan_done(wl->scan_request, true); +#endif wl->scan_request = NULL; } --- a/i386/src/wl/sys/wl_cfg80211_hybrid.c +++ b/i386/src/wl/sys/wl_cfg80211_hybrid.c @@ -2387,7 +2387,15 @@ if (wl->scan_request) { WL_DBG(("%s: Aborting scan\n", __FUNCTION__)); +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)) + struct cfg80211_scan_info info = { + .aborted = true, + }; + + cfg80211_scan_done(wl->scan_request, &info); +#else cfg80211_scan_done(wl->scan_request, true); +#endif wl->scan_request = NULL; } @@ -2488,7 +2496,15 @@ scan_done_out: if (wl->scan_request) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)) + struct cfg80211_scan_info info = { + .aborted = false, + }; + + cfg80211_scan_done(wl->scan_request, &info); +#else cfg80211_scan_done(wl->scan_request, false); +#endif wl->scan_request = NULL; } rtnl_unlock(); @@ -2913,7 +2929,15 @@ s32 err = 0; if (wl->scan_request) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)) + struct cfg80211_scan_info info = { + .aborted = true, + }; + + cfg80211_scan_done(wl->scan_request, &info); +#else cfg80211_scan_done(wl->scan_request, true); +#endif wl->scan_request = NULL; }