1 diff -Naur a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
2 --- a/src/wl/sys/wl_cfg80211_hybrid.c 2016-09-07 22:38:13.303835653 +0200
3 +++ b/src/wl/sys/wl_cfg80211_hybrid.c 2016-09-07 22:54:53.550730661 +0200
7 if (wl->scan_request) {
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
9 + struct cfg80211_scan_info info = {
13 WL_DBG(("%s: Aborting scan\n", __FUNCTION__));
14 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
15 + cfg80211_scan_done(wl->scan_request, &info);
17 cfg80211_scan_done(wl->scan_request, true);
19 wl->scan_request = NULL;
22 @@ -2541,7 +2550,14 @@
25 if (wl->scan_request) {
26 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
27 + struct cfg80211_scan_info info = {
30 + cfg80211_scan_done(wl->scan_request, &info);
32 cfg80211_scan_done(wl->scan_request, false);
34 wl->scan_request = NULL;
37 @@ -2970,7 +2986,14 @@
40 if (wl->scan_request) {
41 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
42 + struct cfg80211_scan_info info = {
45 + cfg80211_scan_done(wl->scan_request, &info);
47 cfg80211_scan_done(wl->scan_request, true);
49 wl->scan_request = NULL;