From b9b96b31bdf0b1f51b5f5c6a85490deee9187597 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 27 Jan 2009 23:19:36 +0000 Subject: change ic_getradiocaps driver callback to include the max # channels so callers know the size of the array passed down --- sys/net80211/ieee80211_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net80211/ieee80211_ioctl.c') diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index d3b3683..f8bd234 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -708,7 +708,7 @@ ieee80211_ioctl_getdevcaps(struct ieee80211com *ic, dc->dc_cryptocaps = ic->ic_cryptocaps; dc->dc_htcaps = ic->ic_htcaps; ci = &dc->dc_chaninfo; - ic->ic_getradiocaps(ic, &ci->ic_nchans, ci->ic_chans); + ic->ic_getradiocaps(ic, IEEE80211_CHAN_MAX, &ci->ic_nchans, ci->ic_chans); ieee80211_sort_channels(ci->ic_chans, ci->ic_nchans); error = copyout(dc, ireq->i_data, sizeof(*dc)); free(dc, M_TEMP); -- cgit v1.1