009-fix_compile_3_2.patch 804 B

123456789101112131415161718192021222324252627
  1. --- a/driver/wl_linux.c
  2. +++ b/driver/wl_linux.c
  3. @@ -463,6 +463,16 @@ wl_schedule_fn(wl_info_t *wl, void (*fn)
  4. }
  5. #endif /* DSLCPE_DELAY */
  6. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
  7. +#define WL_DEFAULT_OPS \
  8. + .ndo_open = wl_open, \
  9. + .ndo_stop = wl_close, \
  10. + .ndo_start_xmit = wl_start, \
  11. + .ndo_get_stats = wl_get_stats, \
  12. + .ndo_set_mac_address = wl_set_mac_address, \
  13. + .ndo_set_rx_mode = wl_set_multicast_list, \
  14. + .ndo_do_ioctl = wl_ioctl
  15. +#else
  16. #define WL_DEFAULT_OPS \
  17. .ndo_open = wl_open, \
  18. .ndo_stop = wl_close, \
  19. @@ -471,6 +481,7 @@ wl_schedule_fn(wl_info_t *wl, void (*fn)
  20. .ndo_set_mac_address = wl_set_mac_address, \
  21. .ndo_set_multicast_list = wl_set_multicast_list, \
  22. .ndo_do_ioctl = wl_ioctl
  23. +#endif
  24. static const struct net_device_ops wl_ops = {
  25. WL_DEFAULT_OPS,