1 --- a/driver/wl_linux.c
2 +++ b/driver/wl_linux.c
3 @@ -2082,8 +2082,12 @@ static void
4 _wl_set_multicast_list(struct net_device *dev)
7 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,34)
8 struct dev_mc_list *mclist;
11 + struct netdev_hw_addr *ha;
17 @@ -2098,14 +2102,23 @@ _wl_set_multicast_list(struct net_device
18 wl->pub->allmulti = (dev->flags & IFF_ALLMULTI)? TRUE: FALSE;
20 /* copy the list of multicasts into our private table */
21 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,34)
22 for (i = 0, mclist = dev->mc_list; mclist && (i < dev->mc_count);
23 i++, mclist = mclist->next) {
25 + netdev_for_each_mc_addr(ha, dev) {
27 if (i >= MAXMULTILIST) {
28 wl->pub->allmulti = TRUE;
32 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,34)
33 wl->pub->multicast[i] = *((struct ether_addr*) mclist->dmi_addr);
35 + wl->pub->multicast[i] = *((struct ether_addr*) ha->addr);
39 wl->pub->nmulticast = i;
40 wlc_set(wl->wlc, WLC_SET_PROMISC, (dev->flags & IFF_PROMISC));