Modify

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#7592 closed defect (fixed)

broadcom-wl doesn't compile for brcm47xx 2.6.35-rc2

Reported by: raver@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: broadcom-wl brcm47xx 2.6.35-rc2 Cc:

Description

Found a solution here:
http://bugs.gentoo.org/248450
http://bugs.gentoo.org/attachment.cgi?id=232555

Created this patch and worked
package/broadcom-wl/patches/003-net_device.patch

--- a/driver/wl_linux.c	2010-06-27 00:11:46.000000000 +0100
+++ b/driver/wl_linux.c	2010-07-09 01:11:14.069140608 +0100
@@ -2082,9 +2082,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;
 
@@ -2096,16 +2100,23 @@
 
 	if (wl->pub->up) {
 		wl->pub->allmulti = (dev->flags & IFF_ALLMULTI)? TRUE: FALSE;
-
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
 		/* copy the list of multicasts into our private table */
 		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));

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by hauke

  • Resolution set to fixed
  • Status changed from new to closed

Thank you for the patch.

A similar patch was applied in r22137.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.