Changeset 4133 for madwifi/branches/madwifi-0.9.4/ath/if_ath.c
- Timestamp:
- 06/20/10 14:13:10 (2 years ago)
- Files:
-
- madwifi/branches/madwifi-0.9.4/ath/if_ath.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
madwifi/branches/madwifi-0.9.4/ath/if_ath.c
r4123 r4133 3497 3497 struct ieee80211com *ic = &sc->sc_ic; 3498 3498 struct ieee80211vap *vap; 3499 struct dev_mc_list *mc;3499 struct ath_netdev_hw_addr *ha; 3500 3500 u_int32_t val; 3501 3501 u_int8_t pos; … … 3505 3505 TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { 3506 3506 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) { 3508 3508 /* 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); 3510 3510 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); 3512 3512 pos ^= (val >> 18) ^ (val >> 12) ^ (val >> 6) ^ val; 3513 3513 pos &= 0x3f;
