Root/package/broadcom-wl/patches/009-fix_compile_3_2.patch

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

Archive Download this file



interactive