diff options
author | sam <sam@FreeBSD.org> | 2009-01-27 23:19:36 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-01-27 23:19:36 +0000 |
commit | b9b96b31bdf0b1f51b5f5c6a85490deee9187597 (patch) | |
tree | 48ffdc3bc41f006bee6d795caca1658a25967de0 /sys/dev/ath | |
parent | 5d3fffbba859a38a26b58d4557b58a3398a176f2 (diff) | |
download | FreeBSD-src-b9b96b31bdf0b1f51b5f5c6a85490deee9187597.zip FreeBSD-src-b9b96b31bdf0b1f51b5f5c6a85490deee9187597.tar.gz |
change ic_getradiocaps driver callback to include the max # channels
so callers know the size of the array passed down
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/if_ath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index c194ecd..e12cb8d 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -205,7 +205,7 @@ static void ath_newassoc(struct ieee80211_node *, int); static int ath_setregdomain(struct ieee80211com *, struct ieee80211_regdomain *, int, struct ieee80211_channel []); -static void ath_getradiocaps(struct ieee80211com *, int *, +static void ath_getradiocaps(struct ieee80211com *, int, int *, struct ieee80211_channel []); static int ath_getchannels(struct ath_softc *); static void ath_led_event(struct ath_softc *, int); @@ -6332,7 +6332,7 @@ ath_setregdomain(struct ieee80211com *ic, struct ieee80211_regdomain *rd, static void ath_getradiocaps(struct ieee80211com *ic, - int *nchans, struct ieee80211_channel chans[]) + int maxchans, int *nchans, struct ieee80211_channel chans[]) { struct ath_softc *sc = ic->ic_ifp->if_softc; struct ath_hal *ah = sc->sc_ah; |