Advertisement
Guest User

linux-recent.patch

a guest
Aug 5th, 2014
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.67 KB | None | 0 0
  1. diff -ur src_orig/src/wl/sys/wl_cfg80211_hybrid.c src/src/wl/sys/wl_cfg80211_hybrid.c
  2. --- src_orig/src/wl/sys/wl_cfg80211_hybrid.c    2014-08-05 17:50:28.578560455 -0300
  3. +++ src/src/wl/sys/wl_cfg80211_hybrid.c 2014-08-05 17:48:57.508426883 -0300
  4. @@ -2071,7 +2071,26 @@
  5.             wl_get_assoc_ies(wl);
  6.             memcpy(&wl->bssid, &e->addr, ETHER_ADDR_LEN);
  7.             wl_update_bss_info(wl);
  8. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)
  9. +           {
  10. +               struct wl_bss_info *bi;
  11. +               u16 bss_info_channel;
  12. +               struct ieee80211_channel *channel;
  13. +               u32 freq;
  14. +
  15. +               bi = (struct wl_bss_info *)(wl->extra_buf + 4);
  16. +               bss_info_channel = bi->ctl_ch ? bi->ctl_ch : CHSPEC_CHANNEL(bi->chanspec);
  17. +
  18. +               freq = ieee80211_channel_to_frequency(bss_info_channel,
  19. +                      (bss_info_channel <= CH_MAX_2G_CHANNEL) ?
  20. +                      IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ);
  21. +
  22. +               channel = ieee80211_get_channel(wl_to_wiphy(wl), freq);
  23. +               cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, channel, GFP_KERNEL);
  24. +           }
  25. +#else
  26.             cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL);
  27. +#endif
  28.             set_bit(WL_STATUS_CONNECTED, &wl->status);
  29.             wl->profile->active = true;
  30.         }
  31. diff -ur src_orig/src/wl/sys/wl_linux.c src/src/wl/sys/wl_linux.c
  32. --- src_orig/src/wl/sys/wl_linux.c  2014-08-05 17:50:28.578560455 -0300
  33. +++ src/src/wl/sys/wl_linux.c   2014-08-05 08:31:05.112606474 -0300
  34. @@ -879,7 +879,7 @@
  35.  static SIMPLE_DEV_PM_OPS(wl_pm_ops, wl_suspend, wl_resume);
  36.  #endif
  37.  
  38. -static struct pci_driver wl_pci_driver = {
  39. +static struct pci_driver wl_pci_driver __refdata = {
  40.     .name =     "wl",
  41.     .probe =    wl_pci_probe,
  42.     .remove =   __devexit_p(wl_remove),
  43. Only in src_orig/src/wl/sys: wl_linux.c.orig
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement