wok-6.x diff broadcom-wl/stuff/3.9.0.patch @ rev 20286

broadcom-wl: add some kernel compatibility patches from debian
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 02 11:19:24 2018 +0200 (2018-04-02)
parents
children 564f7f9745bd
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/broadcom-wl/stuff/3.9.0.patch	Mon Apr 02 11:19:24 2018 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +Description: Kernel 3.9 compatibility
     1.5 +Last-Update: 2013-05-07
     1.6 +
     1.7 +--- a/amd64/src/wl/sys/wl_cfg80211.c
     1.8 ++++ b/amd64/src/wl/sys/wl_cfg80211.c
     1.9 +@@ -2115,7 +2115,11 @@
    1.10 + 		rcu_read_unlock();
    1.11 + #endif
    1.12 + 		beacon_interval = bss->beacon_interval;
    1.13 ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)
    1.14 + 		cfg80211_put_bss(bss);
    1.15 ++#else
    1.16 ++		cfg80211_put_bss(wl_to_wiphy(wl), bss);
    1.17 ++#endif
    1.18 + 	}
    1.19 + 
    1.20 + 	tim = bcm_parse_tlvs(ie, ie_len, WLAN_EID_TIM);