Changeset 4133 for madwifi/branches/madwifi-dfs/ath/if_ath.c
- Timestamp:
- 06/20/10 14:13:10 (2 years ago)
- Files:
-
- madwifi/branches/madwifi-dfs/ath/if_ath.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
madwifi/branches/madwifi-dfs/ath/if_ath.c
r4112 r4133 4460 4460 struct ieee80211com *ic = &sc->sc_ic; 4461 4461 struct ieee80211vap *vap; 4462 struct dev_mc_list *mc;4462 struct ath_netdev_hw_addr *ha; 4463 4463 u_int32_t val; 4464 4464 u_int8_t pos; … … 4468 4468 TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { 4469 4469 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) { 4471 4471 /* 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); 4473 4473 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); 4475 4475 pos ^= (val >> 18) ^ (val >> 12) ^ (val >> 6) ^ val; 4476 4476 pos &= 0x3f;
