linux48.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839629
  2. --- a/src/wl/sys/wl_cfg80211_hybrid.c 2016-10-03 10:53:55.588036464 +0200
  3. +++ b/src/wl/sys/wl_cfg80211_hybrid.c 2016-10-03 10:54:11.911695944 +0200
  4. @@ -2386,8 +2386,15 @@
  5. s32 err = 0;
  6. if (wl->scan_request) {
  7. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
  8. + struct cfg80211_scan_info info = {
  9. + .aborted = true
  10. + };
  11. WL_DBG(("%s: Aborting scan\n", __FUNCTION__));
  12. - cfg80211_scan_done(wl->scan_request, true);
  13. + cfg80211_scan_done(wl->scan_request, &info);
  14. +#else
  15. + cfg80211_scan_done(wl->scan_request, true);
  16. +#endif
  17. wl->scan_request = NULL;
  18. }
  19. @@ -2488,7 +2495,14 @@
  20. scan_done_out:
  21. if (wl->scan_request) {
  22. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
  23. + struct cfg80211_scan_info info = {
  24. + .aborted = false
  25. + };
  26. + cfg80211_scan_done(wl->scan_request, &info);
  27. +#else
  28. cfg80211_scan_done(wl->scan_request, false);
  29. +#endif
  30. wl->scan_request = NULL;
  31. }
  32. rtnl_unlock();
  33. @@ -2913,7 +2927,14 @@
  34. s32 err = 0;
  35. if (wl->scan_request) {
  36. - cfg80211_scan_done(wl->scan_request, true);
  37. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
  38. + struct cfg80211_scan_info info = {
  39. + .aborted = true
  40. + };
  41. + cfg80211_scan_done(wl->scan_request, &info);
  42. +#else
  43. + cfg80211_scan_done(wl->scan_request, true);
  44. +#endif
  45. wl->scan_request = NULL;
  46. }