diff options
author | peter <peter@FreeBSD.org> | 2004-12-15 02:32:27 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-12-15 02:32:27 +0000 |
commit | c171b522d6aaa9a314c968487bd9ca76d1419d31 (patch) | |
tree | a4e6cb59c06f607765d6dae76603791c99b27f45 /sys/dev/ath | |
parent | adbd450602d8c30f87ea57df2d67b2a8920e0596 (diff) | |
download | FreeBSD-src-c171b522d6aaa9a314c968487bd9ca76d1419d31.zip FreeBSD-src-c171b522d6aaa9a314c968487bd9ca76d1419d31.tar.gz |
Like on the ath_rate_onoe component, make this compile on amd64. Convert
pointers to an integer via uintptr_t.
Fix an apparent bug that caused a compile failure.
ieee80211_iterate_nodes() takes ic->ic_sta as its first argument on the
onoe module. It had just 'ic' here in the same context, which was a
mismatched argument.
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/ath_rate/amrr/amrr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_rate/amrr/amrr.c b/sys/dev/ath/ath_rate/amrr/amrr.c index 6b075f9..32be5dd 100644 --- a/sys/dev/ath/ath_rate/amrr/amrr.c +++ b/sys/dev/ath/ath_rate/amrr/amrr.c @@ -326,7 +326,7 @@ ath_rate_ctl_start(struct ath_softc *sc, struct ieee80211_node *ni) static void ath_rate_cb(void *arg, struct ieee80211_node *ni) { - ath_rate_update(ni->ni_ic->ic_ifp->if_softc, ni, (int) arg); + ath_rate_update(ni->ni_ic->ic_ifp->if_softc, ni, (int)(uintptr_t) arg); } /* @@ -468,7 +468,7 @@ ath_ratectl(void *arg) if (ic->ic_opmode == IEEE80211_M_STA) ath_rate_ctl(sc, ic->ic_bss); /* NB: no reference */ else if (ic->ic_sta != NULL) - ieee80211_iterate_nodes(ic, ath_rate_ctl, sc); + ieee80211_iterate_nodes(ic->ic_sta, ath_rate_ctl, sc); } interval = ath_rateinterval; if (ic->ic_opmode == IEEE80211_M_STA) |