source: projects/specs/trunk/nonfree/self-build-broadcom-wl/broadcom-wl-kernel318.patch @ 9688

Revision 9688, 1.7 KB checked in by inagaki, 9 years ago (diff)

2015-08-02 Ryoichi INAGAKI <ryo1@…>

  • self-build-broadcom-wl: added patch for kernel 3.18
  • xfce4-embed-plugin, xfce4-verve-plugin, xfdesktop: updated


  • src/wl/sys/wl_linux.c

    old new  
    13071307        dev->priv = priv_link; 
    13081308#else 
    13091309 
     1310#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)) 
    13101311        dev = alloc_netdev(sizeof(priv_link_t), intf_name, ether_setup); 
     1312#else 
     1313        dev = alloc_netdev(sizeof(priv_link_t), intf_name, NET_NAME_UNKNOWN, ether_setup); 
     1314#endif 
    13111315        if (!dev) { 
    13121316                WL_ERROR(("wl%d: %s: alloc_netdev failed\n", 
    13131317                        (wl->pub)?wl->pub->unit:wlif->subunit, __FUNCTION__)); 
  • src/wl/sys/wl_cfg80211_hybrid.c

    old new  
    20102010 
    20112011        notify_ie = (u8 *)bi + le16_to_cpu(bi->ie_offset); 
    20122012        notify_ielen = le32_to_cpu(bi->ie_length); 
     2013#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)) 
    20132014        cbss = cfg80211_inform_bss(wiphy, channel, (const u8 *)(bi->BSSID.octet), 
    20142015                0, beacon_proberesp->capab_info, beacon_proberesp->beacon_int, 
    20152016                (const u8 *)notify_ie, notify_ielen, signal, GFP_KERNEL); 
     2017#else 
     2018        cbss = cfg80211_inform_bss(wiphy, channel, CFG80211_BSS_FTYPE_UNKNOWN, (const u8 *)(bi->BSSID.octet), 
     2019                0, beacon_proberesp->capab_info, beacon_proberesp->beacon_int, 
     2020                (const u8 *)notify_ie, notify_ielen, signal, GFP_KERNEL); 
     2021#endif 
    20162022 
    20172023        if (unlikely(!cbss)) 
    20182024                return -ENOMEM; 
     
    20712077                        wl_get_assoc_ies(wl); 
    20722078                        memcpy(&wl->bssid, &e->addr, ETHER_ADDR_LEN); 
    20732079                        wl_update_bss_info(wl); 
     2080#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)) 
    20742081                        cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL); 
     2082#else 
     2083                        cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, 
     2084                                             &wl->conf->channel, GFP_KERNEL); 
     2085#endif 
    20752086                        set_bit(WL_STATUS_CONNECTED, &wl->status); 
    20762087                        wl->profile->active = true; 
    20772088                } 
Note: See TracBrowser for help on using the repository browser.