Show
Ignore:
Timestamp:
06/20/10 14:13:10 (2 years ago)
Author:
proski
Message:

Fix compatibility with kernels 2.6.0, 2.6.1, 2.6.2, 2.6.11 and 2.6.35

References: r4130, r4131, r4132

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/branches/madwifi-0.9.4/ath/if_ath.c

    r4123 r4133  
    34973497        struct ieee80211com *ic = &sc->sc_ic; 
    34983498        struct ieee80211vap *vap; 
    3499         struct dev_mc_list *mc
     3499        struct ath_netdev_hw_addr *ha
    35003500        u_int32_t val; 
    35013501        u_int8_t pos; 
     
    35053505        TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { 
    35063506                struct net_device *dev = vap->iv_dev; 
    3507                 for (mc = dev->mc_list; mc; mc = mc->next) { 
     3507                netdev_for_each_mc_addr (ha, dev) { 
    35083508                        /* calculate XOR of eight 6-bit values */ 
    3509                         val = LE_READ_4(mc->dmi_addr + 0); 
     3509                        val = LE_READ_4(ath_ha_addr(ha) + 0); 
    35103510                        pos = (val >> 18) ^ (val >> 12) ^ (val >> 6) ^ val; 
    3511                         val = LE_READ_4(mc->dmi_addr + 3); 
     3511                        val = LE_READ_4(ath_ha_addr(ha) + 3); 
    35123512                        pos ^= (val >> 18) ^ (val >> 12) ^ (val >> 6) ^ val; 
    35133513                        pos &= 0x3f;