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)
5 #endif /* DSLCPE_DELAY */
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
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
26 static const struct net_device_ops wl_ops = {