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

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

update: self-build-broadcom-wl

  • amd64/src/wl/sys/wl_linux.c

    Description: Compile fix with kernel 4.11
     I use the attached patch to get this module compiled with 4.11. Works
     for me since last sunday.
     Apparently https://aur.archlinux.org/cgit/aur.git/tree/linux411.patch?h=broadcom-wl
     has come with a different patch for the removed last_rx field in
     netdevice. But judging the commit log
     https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/include/linux/netdevice.h?id=4a7c972644c1151f6dd34ff4b5f7eacb239e22ee
     and the fact that last_rx isn't used elsewhere I came up with just
     ifdef it out.
    Author: koos vriezen <koos.vriezen@gmail.com>
    Bug-Debian: http://bugs.debian.org/861807
    Origin: http://bugs.debian.org/861807
    Forwarded: no
    Reviewed-By: Eduard Bloch <blade@debian.org>
    Last-Update: 2017-05-04
    
    a b wl_monitor(wl_info_t *wl, wl_rxsts_t *rx 
    29122912        if (skb == NULL) return; 
    29132913 
    29142914        skb->dev = wl->monitor_dev; 
     2915#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) 
    29152916        skb->dev->last_rx = jiffies; 
     2917#endif 
    29162918#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22) 
    29172919        skb_reset_mac_header(skb); 
    29182920#else 
  • amd64/src/wl/sys/wl_cfg80211_hybrid.c

    a b  
    3030#include <linux/kthread.h> 
    3131#include <linux/netdevice.h> 
    3232#include <linux/ieee80211.h> 
     33#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 
     34#include <linux/sched/signal.h> 
     35#endif 
    3336#include <net/cfg80211.h> 
    3437#include <linux/nl80211.h> 
    3538#include <net/rtnetlink.h> 
Note: See TracBrowser for help on using the repository browser.