16-linux48.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Package: broadcom-sta-source
  2. Version: 6.30.223.271-3
  3. Looking at the patch for kernel 4.8, I came up with the attached patch
  4. (and I send this mail while running it :)
  5. Thanks,
  6. Koos Vriezen
  7. --- broadcom-sta.orig/amd64/src/wl/sys/wl_cfg80211_hybrid.c.orig 2016-10-03 10:53:55.588036464 +0200
  8. +++ broadcom-sta.orig/amd64/src/wl/sys/wl_cfg80211_hybrid.c 2016-10-03 10:54:11.911695944 +0200
  9. @@ -2386,8 +2386,15 @@
  10. s32 err = 0;
  11. if (wl->scan_request) {
  12. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
  13. + struct cfg80211_scan_info info = {
  14. + .aborted = true
  15. + };
  16. WL_DBG(("%s: Aborting scan\n", __FUNCTION__));
  17. - cfg80211_scan_done(wl->scan_request, true);
  18. + cfg80211_scan_done(wl->scan_request, &info);
  19. +#else
  20. + cfg80211_scan_done(wl->scan_request, true);
  21. +#endif
  22. wl->scan_request = NULL;
  23. }
  24. @@ -2488,7 +2495,14 @@
  25. scan_done_out:
  26. if (wl->scan_request) {
  27. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
  28. + struct cfg80211_scan_info info = {
  29. + .aborted = false
  30. + };
  31. + cfg80211_scan_done(wl->scan_request, &info);
  32. +#else
  33. cfg80211_scan_done(wl->scan_request, false);
  34. +#endif
  35. wl->scan_request = NULL;
  36. }
  37. rtnl_unlock();
  38. @@ -2913,7 +2927,14 @@
  39. s32 err = 0;
  40. if (wl->scan_request) {
  41. - cfg80211_scan_done(wl->scan_request, true);
  42. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
  43. + struct cfg80211_scan_info info = {
  44. + .aborted = true
  45. + };
  46. + cfg80211_scan_done(wl->scan_request, &info);
  47. +#else
  48. + cfg80211_scan_done(wl->scan_request, true);
  49. +#endif
  50. wl->scan_request = NULL;
  51. }