diff -Naur broadcom-sta-5.60.48.36.orig/src/wl/sys/wl_iw.h broadcom-sta-5.60.48.36/src/wl/sys/wl_iw.h --- broadcom-sta-5.60.48.36.orig/src/wl/sys/wl_iw.h 2010-02-06 10:59:15.000000000 +0900 +++ broadcom-sta-5.60.48.36/src/wl/sys/wl_iw.h 2010-06-05 09:32:46.000000000 +0900 @@ -15,6 +15,7 @@ #ifndef _wl_iw_h_ #define _wl_iw_h_ +#include #include #include diff -Naur broadcom-sta-5.60.48.36.orig/src/wl/sys/wl_linux.c broadcom-sta-5.60.48.36/src/wl/sys/wl_linux.c --- broadcom-sta-5.60.48.36.orig/src/wl/sys/wl_linux.c 2010-02-06 10:59:15.000000000 +0900 +++ broadcom-sta-5.60.48.36/src/wl/sys/wl_linux.c 2010-06-04 08:25:22.000000000 +0900 @@ -1416,8 +1416,13 @@ _wl_set_multicast_list(struct net_device *dev) { wl_info_t *wl; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35) + struct netdev_hw_addr *ha; + int i=0; +#else struct dev_mc_list *mclist; int i; +#endif if (!dev) return; @@ -1430,14 +1435,22 @@ if (wl->pub->up) { wl->pub->allmulti = (dev->flags & IFF_ALLMULTI)? TRUE: FALSE; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35) + netdev_for_each_mc_addr(ha, dev) { +#else for (i = 0, mclist = dev->mc_list; mclist && (i < dev->mc_count); i++, mclist = mclist->next) { +#endif if (i >= MAXMULTILIST) { wl->pub->allmulti = TRUE; i = 0; break; } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35) + wl->pub->multicast[i] = *((struct ether_addr*) ha->addr); +#else wl->pub->multicast[i] = *((struct ether_addr*) mclist->dmi_addr); +#endif } wl->pub->nmulticast = i; wlc_set(wl->wlc, WLC_SET_PROMISC, (dev->flags & IFF_PROMISC));