source: projects/specs/trunk/nonfree/self-build-broadcom-wl/16-linux48.patch @ 11261

Revision 11261, 1.5 KB checked in by ara_t, 6 years ago (diff)

update: self-build-broadcom-wl

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