diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2012-02-10 17:07:14 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2012-02-10 17:07:14 +0000 |
commit | a0c1e51d41b16d9b8b4c79762baeb974a3ddee5b (patch) | |
tree | 9a029c069a0cf8053f3b5874ad3933ad5e43957b /package/broadcom-wl | |
parent | 5e99ac529705f67c997cb2ea37bee6d94f7b88ed (diff) | |
download | master-187ad058-a0c1e51d41b16d9b8b4c79762baeb974a3ddee5b.tar.gz master-187ad058-a0c1e51d41b16d9b8b4c79762baeb974a3ddee5b.tar.bz2 master-187ad058-a0c1e51d41b16d9b8b4c79762baeb974a3ddee5b.zip |
broadcom-wl: fix compile with kernel 3.2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30421 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl')
-rw-r--r-- | package/broadcom-wl/patches/009-fix_compile_3_2.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/broadcom-wl/patches/009-fix_compile_3_2.patch b/package/broadcom-wl/patches/009-fix_compile_3_2.patch new file mode 100644 index 0000000000..628f2fdf25 --- /dev/null +++ b/package/broadcom-wl/patches/009-fix_compile_3_2.patch @@ -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, |