From 716ca530e1c4515d8683c9d5be3d56b301758b66 Mon Sep 17 00:00:00 2001 From: James <> Date: Wed, 4 Nov 2015 11:49:21 +0000 Subject: trunk-47381 --- .../broadcom-wl/patches/009-fix_compile_3_2.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/kernel/broadcom-wl/patches/009-fix_compile_3_2.patch (limited to 'package/kernel/broadcom-wl/patches/009-fix_compile_3_2.patch') diff --git a/package/kernel/broadcom-wl/patches/009-fix_compile_3_2.patch b/package/kernel/broadcom-wl/patches/009-fix_compile_3_2.patch new file mode 100644 index 0000000..cb388a1 --- /dev/null +++ b/package/kernel/broadcom-wl/patches/009-fix_compile_3_2.patch @@ -0,0 +1,27 @@ +--- a/driver/wl_linux.c ++++ b/driver/wl_linux.c +@@ -463,6 +463,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, \ +@@ -471,6 +481,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, -- cgit v1.2.3