ar71xx: ag71xx: make switch register access atomic
[openwrt.git] / package / broadcom-wl / patches / 003-compat-2.6.35.patch
1 --- a/driver/wl_linux.c
2 +++ b/driver/wl_linux.c
3 @@ -2082,7 +2082,11 @@ static void
4 _wl_set_multicast_list(struct net_device *dev)
5 {
6 wl_info_t *wl;
7 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,34)
8 struct dev_mc_list *mclist;
9 +#else
10 + struct netdev_hw_addr *ha;
11 +#endif
12 int i;
13
14 if (!dev)
15 @@ -2098,14 +2102,23 @@ _wl_set_multicast_list(struct net_device
16 wl->pub->allmulti = (dev->flags & IFF_ALLMULTI)? TRUE: FALSE;
17
18 /* copy the list of multicasts into our private table */
19 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,34)
20 for (i = 0, mclist = dev->mc_list; mclist && (i < dev->mc_count);
21 i++, mclist = mclist->next) {
22 +#else
23 + netdev_for_each_mc_addr(ha, dev) {
24 +#endif
25 if (i >= MAXMULTILIST) {
26 wl->pub->allmulti = TRUE;
27 i = 0;
28 break;
29 }
30 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,34)
31 wl->pub->multicast[i] = *((struct ether_addr*) mclist->dmi_addr);
32 +#else
33 + wl->pub->multicast[i] = *((struct ether_addr*) ha->addr);
34 + i++;
35 +#endif
36 }
37 wl->pub->nmulticast = i;
38 wlc_set(wl->wlc, WLC_SET_PROMISC, (dev->flags & IFF_PROMISC));
This page took 0.046381 seconds and 5 git commands to generate.