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.
This commit is contained in:
Peter Wemm 2004-12-15 02:32:27 +00:00
parent 6891c875c2
commit 063896020b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138879

View File

@ -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)