broadcom-wl-kernel318.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --- src/wl/sys/wl_linux.c.orig 2014-06-26 03:42:08.000000000 -0700
  2. +++ src/wl/sys/wl_linux.c 2015-07-29 06:37:51.000000000 -0700
  3. @@ -1307,7 +1307,11 @@
  4. dev->priv = priv_link;
  5. #else
  6. +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0))
  7. dev = alloc_netdev(sizeof(priv_link_t), intf_name, ether_setup);
  8. +#else
  9. + dev = alloc_netdev(sizeof(priv_link_t), intf_name, NET_NAME_UNKNOWN, ether_setup);
  10. +#endif
  11. if (!dev) {
  12. WL_ERROR(("wl%d: %s: alloc_netdev failed\n",
  13. (wl->pub)?wl->pub->unit:wlif->subunit, __FUNCTION__));
  14. --- src/wl/sys/wl_cfg80211_hybrid.c.orig 2014-06-26 03:42:08.000000000 -0700
  15. +++ src/wl/sys/wl_cfg80211_hybrid.c 2015-07-29 07:03:39.000000000 -0700
  16. @@ -2010,9 +2010,15 @@
  17. notify_ie = (u8 *)bi + le16_to_cpu(bi->ie_offset);
  18. notify_ielen = le32_to_cpu(bi->ie_length);
  19. +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0))
  20. cbss = cfg80211_inform_bss(wiphy, channel, (const u8 *)(bi->BSSID.octet),
  21. 0, beacon_proberesp->capab_info, beacon_proberesp->beacon_int,
  22. (const u8 *)notify_ie, notify_ielen, signal, GFP_KERNEL);
  23. +#else
  24. + cbss = cfg80211_inform_bss(wiphy, channel, CFG80211_BSS_FTYPE_UNKNOWN, (const u8 *)(bi->BSSID.octet),
  25. + 0, beacon_proberesp->capab_info, beacon_proberesp->beacon_int,
  26. + (const u8 *)notify_ie, notify_ielen, signal, GFP_KERNEL);
  27. +#endif
  28. if (unlikely(!cbss))
  29. return -ENOMEM;
  30. @@ -2071,7 +2077,12 @@
  31. wl_get_assoc_ies(wl);
  32. memcpy(&wl->bssid, &e->addr, ETHER_ADDR_LEN);
  33. wl_update_bss_info(wl);
  34. +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0))
  35. cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL);
  36. +#else
  37. + cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid,
  38. + &wl->conf->channel, GFP_KERNEL);
  39. +#endif
  40. set_bit(WL_STATUS_CONNECTED, &wl->status);
  41. wl->profile->active = true;
  42. }