ieee80211_ioctl.c (187678) | ieee80211_ioctl.c (187800) |
---|---|
1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ioctl.c 187678 2009-01-25 07:31:51Z thompsa $"); | 28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ioctl.c 187800 2009-01-27 23:19:36Z sam $"); |
29 30/* 31 * IEEE 802.11 ioctl support (FreeBSD-specific) 32 */ 33 34#include "opt_inet.h" 35#include "opt_ipx.h" 36#include "opt_wlan.h" --- 666 unchanged lines hidden (view full) --- 703 dc = (struct ieee80211_devcaps_req *) malloc( 704 sizeof(struct ieee80211_devcaps_req), M_TEMP, M_NOWAIT | M_ZERO); 705 if (dc == NULL) 706 return ENOMEM; 707 dc->dc_drivercaps = ic->ic_caps; 708 dc->dc_cryptocaps = ic->ic_cryptocaps; 709 dc->dc_htcaps = ic->ic_htcaps; 710 ci = &dc->dc_chaninfo; | 29 30/* 31 * IEEE 802.11 ioctl support (FreeBSD-specific) 32 */ 33 34#include "opt_inet.h" 35#include "opt_ipx.h" 36#include "opt_wlan.h" --- 666 unchanged lines hidden (view full) --- 703 dc = (struct ieee80211_devcaps_req *) malloc( 704 sizeof(struct ieee80211_devcaps_req), M_TEMP, M_NOWAIT | M_ZERO); 705 if (dc == NULL) 706 return ENOMEM; 707 dc->dc_drivercaps = ic->ic_caps; 708 dc->dc_cryptocaps = ic->ic_cryptocaps; 709 dc->dc_htcaps = ic->ic_htcaps; 710 ci = &dc->dc_chaninfo; |
711 ic->ic_getradiocaps(ic, &ci->ic_nchans, ci->ic_chans); | 711 ic->ic_getradiocaps(ic, IEEE80211_CHAN_MAX, &ci->ic_nchans, ci->ic_chans); |
712 ieee80211_sort_channels(ci->ic_chans, ci->ic_nchans); 713 error = copyout(dc, ireq->i_data, sizeof(*dc)); 714 free(dc, M_TEMP); 715 return error; 716} 717 718static __noinline int 719ieee80211_ioctl_getstavlan(struct ieee80211vap *vap, struct ieee80211req *ireq) --- 2610 unchanged lines hidden --- | 712 ieee80211_sort_channels(ci->ic_chans, ci->ic_nchans); 713 error = copyout(dc, ireq->i_data, sizeof(*dc)); 714 free(dc, M_TEMP); 715 return error; 716} 717 718static __noinline int 719ieee80211_ioctl_getstavlan(struct ieee80211vap *vap, struct ieee80211req *ireq) --- 2610 unchanged lines hidden --- |