#2408: make error building against 2.6.35-rc1 with madwifi-hal-0.10.5.6.
-----------------------------------+----------------------------------------
      Reporter:  mgav...@juno.com  |       Owner:     
          Type:  defect            |      Status:  new
      Priority:  minor             |   Milestone:     
     Component:  madwifi: driver   |     Version:     
    Resolution:                    |    Keywords:     
Patch_attached:  0                 |     Pending:  0  
-----------------------------------+----------------------------------------
Comment (by anonymous):

 Error.

 {{{
 if_ath.c: In function 'ath_merge_mcast':
 if_ath.c:4429: error: 'struct net_device' has no member named 'mc_list'
 if_ath.c:4429: error: dereferencing pointer to incomplete type
 }}}

 Patch.

 {{{
 -        struct dev_mc_list *mc;
 +        struct netdev_hw_addr *ha;

 -               for (mc = dev->mc_list; mc; mc = mc->next) {
 -                       /* calculate XOR of eight 6-bit values */
 -                       val = LE_READ_4(mc->dmi_addr + 0);
 -                       pos = (val >> 18) ^ (val >> 12) ^ (val >> 6) ^
 val;
 -                       val = LE_READ_4(mc->dmi_addr + 3);
 +               netdev_for_each_mc_addr(ha, dev) {
 +                       /* calculate XOR of eight 6-bit values */
 +                       val = LE_READ_4(ha->addr + 0);
 +                       pos = (val >> 18) ^ (val >> 12) ^ (val >> 6) ^
 val;
 +                       val = LE_READ_4(ha->addr + 3);
 }}}

-- 
Ticket URL: <http://madwifi-project.org/ticket/2408#comment:1>
madwifi-project.org <http://madwifi-project.org/>
Multiband Atheros Driver for Wireless Fidelity
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Madwifi-tickets mailing list
Madwifi-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to