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

  • broadcom-sta.orig/amd64/src/wl/sys/wl_cfg80211_hybrid.c

    Package: broadcom-sta-source
    Version:  6.30.223.271-3
    
    Looking at the patch for kernel 4.8, I came up with the attached patch
    (and I send this mail while running it :)
         
    Thanks,
    Koos Vriezen
    
    
    old new  
    23862386        s32 err = 0; 
    23872387 
    23882388        if (wl->scan_request) { 
     2389#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) 
     2390                struct cfg80211_scan_info info = { 
     2391                        .aborted = true 
     2392                }; 
    23892393                WL_DBG(("%s: Aborting scan\n", __FUNCTION__)); 
    2390                 cfg80211_scan_done(wl->scan_request, true);      
     2394                cfg80211_scan_done(wl->scan_request, &info); 
     2395#else 
     2396                cfg80211_scan_done(wl->scan_request, true); 
     2397#endif 
    23912398                wl->scan_request = NULL; 
    23922399        } 
    23932400 
     
    24882495 
    24892496scan_done_out: 
    24902497        if (wl->scan_request) { 
     2498#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) 
     2499                struct cfg80211_scan_info info = { 
     2500                        .aborted = false 
     2501                }; 
     2502                cfg80211_scan_done(wl->scan_request, &info); 
     2503#else 
    24912504                cfg80211_scan_done(wl->scan_request, false); 
     2505#endif 
    24922506                wl->scan_request = NULL; 
    24932507        } 
    24942508        rtnl_unlock(); 
     
    29132927        s32 err = 0; 
    29142928 
    29152929        if (wl->scan_request) { 
    2916                 cfg80211_scan_done(wl->scan_request, true);      
     2930#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) 
     2931                struct cfg80211_scan_info info = { 
     2932                        .aborted = true 
     2933                }; 
     2934                cfg80211_scan_done(wl->scan_request, &info); 
     2935#else 
     2936                cfg80211_scan_done(wl->scan_request, true); 
     2937#endif 
    29172938                wl->scan_request = NULL; 
    29182939        } 
    29192940 
Note: See TracBrowser for help on using the repository browser.