aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl/patches/.svn/text-base/009-fix_compile_3_2.patch.svn-base
diff options
context:
space:
mode:
authorJames <>2013-03-17 12:16:37 +0000
committerJames <>2013-03-17 12:16:37 +0000
commit27b76ab0671089c47506615a796a261e993896a7 (patch)
tree61213d67e7fa87b20356b23798558e2c4212c42f /package/broadcom-wl/patches/.svn/text-base/009-fix_compile_3_2.patch.svn-base
downloadtrunk-36060-master.tar.gz
trunk-36060-master.tar.bz2
trunk-36060-master.zip
Diffstat (limited to 'package/broadcom-wl/patches/.svn/text-base/009-fix_compile_3_2.patch.svn-base')
-rw-r--r--package/broadcom-wl/patches/.svn/text-base/009-fix_compile_3_2.patch.svn-base27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/broadcom-wl/patches/.svn/text-base/009-fix_compile_3_2.patch.svn-base b/package/broadcom-wl/patches/.svn/text-base/009-fix_compile_3_2.patch.svn-base
new file mode 100644
index 0000000..628f2fd
--- /dev/null
+++ b/package/broadcom-wl/patches/.svn/text-base/009-fix_compile_3_2.patch.svn-base
@@ -0,0 +1,27 @@
+--- a/driver/wl_linux.c
++++ b/driver/wl_linux.c
+@@ -462,6 +462,16 @@ wl_schedule_fn(wl_info_t *wl, void (*fn)
+ }
+ #endif /* DSLCPE_DELAY */
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
++#define WL_DEFAULT_OPS \
++ .ndo_open = wl_open, \
++ .ndo_stop = wl_close, \
++ .ndo_start_xmit = wl_start, \
++ .ndo_get_stats = wl_get_stats, \
++ .ndo_set_mac_address = wl_set_mac_address, \
++ .ndo_set_rx_mode = wl_set_multicast_list, \
++ .ndo_do_ioctl = wl_ioctl
++#else
+ #define WL_DEFAULT_OPS \
+ .ndo_open = wl_open, \
+ .ndo_stop = wl_close, \
+@@ -470,6 +480,7 @@ wl_schedule_fn(wl_info_t *wl, void (*fn)
+ .ndo_set_mac_address = wl_set_mac_address, \
+ .ndo_set_multicast_list = wl_set_multicast_list, \
+ .ndo_do_ioctl = wl_ioctl
++#endif
+
+ static const struct net_device_ops wl_ops = {
+ WL_DEFAULT_OPS,