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));
41 --- a/driver/linux_osl.c
42 +++ b/driver/linux_osl.c
43 @@ -65,7 +65,9 @@ struct osl_info {
44 #if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
46 dev_link_t link; /* PCMCIA device pointer */
47 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,34)
48 dev_node_t node; /* PCMCIA node structure */
50 void *base; /* Mapped attribute memory window */
51 size_t size; /* Size of window */
52 void *drv; /* Driver data */