Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 232555 Details for
Bug 248450
New ebuild: net-wireless/broadcom-sta
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
replace mc_list handling with netdev_for_each_mc_addr
wl_linux.c.diff (text/plain), 1.05 KB, created by
Alessandro Suardi
on 2010-05-23 11:00:12 UTC
(
hide
)
Description:
replace mc_list handling with netdev_for_each_mc_addr
Filename:
MIME Type:
Creator:
Alessandro Suardi
Created:
2010-05-23 11:00:12 UTC
Size:
1.05 KB
patch
obsolete
>--- wl_linux.c.orig 2010-02-06 03:02:35.000000000 +0100 >+++ wl_linux.c 2010-05-23 12:48:19.000000000 +0200 >@@ -1416,8 +1416,13 @@ > _wl_set_multicast_list(struct net_device *dev) > { > wl_info_t *wl; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34) > struct dev_mc_list *mclist; > int i; >+#else >+ struct netdev_hw_addr *ha; >+ int i=0; >+#endif > > if (!dev) > return; >@@ -1429,15 +1434,22 @@ > > if (wl->pub->up) { > wl->pub->allmulti = (dev->flags & IFF_ALLMULTI)? TRUE: FALSE; >- >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34) > for (i = 0, mclist = dev->mc_list; mclist && (i < dev->mc_count); > i++, mclist = mclist->next) { >+#else >+ netdev_for_each_mc_addr(ha, dev) { >+#endif > if (i >= MAXMULTILIST) { > wl->pub->allmulti = TRUE; > i = 0; > break; > } >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34) > wl->pub->multicast[i] = *((struct ether_addr*) mclist->dmi_addr); >+#else >+ wl->pub->multicast[i] = *((struct ether_addr*) ha->addr); >+#endif > } > wl->pub->nmulticast = i; > wlc_set(wl->wlc, WLC_SET_PROMISC, (dev->flags & IFF_PROMISC));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248450
:
173053
|
173054
|
173055
|
174402
|
176017
|
176018
|
176084
|
176108
|
176112
|
176117
|
177128
|
177129
|
178706
|
179564
|
179581
|
179630
|
179742
|
180576
|
180679
|
184149
|
184151
|
184152
|
184198
|
184309
|
187456
|
189238
|
189250
|
195182
| 232555