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-dfs/ath/if_ath.c

    r4112 r4133  
    44604460        struct ieee80211com *ic = &sc->sc_ic; 
    44614461        struct ieee80211vap *vap; 
    4462         struct dev_mc_list *mc
     4462        struct ath_netdev_hw_addr *ha
    44634463        u_int32_t val; 
    44644464        u_int8_t pos; 
     
    44684468        TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { 
    44694469                struct net_device *dev = vap->iv_dev; 
    4470                 for (mc = dev->mc_list; mc; mc = mc->next) { 
     4470                netdev_for_each_mc_addr (ha, dev) { 
    44714471                        /* calculate XOR of eight 6-bit values */ 
    4472                         val = LE_READ_4(mc->dmi_addr + 0); 
     4472                        val = LE_READ_4(ath_ha_addr(ha) + 0); 
    44734473                        pos = (val >> 18) ^ (val >> 12) ^ (val >> 6) ^ val; 
    4474                         val = LE_READ_4(mc->dmi_addr + 3); 
     4474                        val = LE_READ_4(ath_ha_addr(ha) + 3); 
    44754475                        pos ^= (val >> 18) ^ (val >> 12) ^ (val >> 6) ^ val; 
    44764476                        pos &= 0x3f;