ieee80211_ioctl.c (161146) | ieee80211_ioctl.c (162659) |
---|---|
1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 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: --- 17 unchanged lines hidden (view full) --- 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 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: --- 17 unchanged lines hidden (view full) --- 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ioctl.c 161146 2006-08-10 06:04:00Z sam $"); | 34__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ioctl.c 162659 2006-09-26 12:41:13Z ru $"); |
35 | 35 |
36#include "opt_compat.h" 37 |
|
36/* 37 * IEEE 802.11 ioctl support (FreeBSD-specific) 38 */ 39 40#include "opt_inet.h" 41#include "opt_ipx.h" 42 43#include <sys/endian.h> --- 926 unchanged lines hidden (view full) --- 970 ireq->i_len = sizeof(struct ieee80211req_sta_stats); 971 /* NB: copy out only the statistics */ 972 error = copyout(&ni->ni_stats, (u_int8_t *) ireq->i_data + off, 973 ireq->i_len - off); 974 ieee80211_free_node(ni); 975 return error; 976} 977 | 38/* 39 * IEEE 802.11 ioctl support (FreeBSD-specific) 40 */ 41 42#include "opt_inet.h" 43#include "opt_ipx.h" 44 45#include <sys/endian.h> --- 926 unchanged lines hidden (view full) --- 972 ireq->i_len = sizeof(struct ieee80211req_sta_stats); 973 /* NB: copy out only the statistics */ 974 error = copyout(&ni->ni_stats, (u_int8_t *) ireq->i_data + off, 975 ireq->i_len - off); 976 ieee80211_free_node(ni); 977 return error; 978} 979 |
978#define COMPAT_FREEBSD6 | |
979#ifdef COMPAT_FREEBSD6 980#define IEEE80211_IOC_SCAN_RESULTS_OLD 24 981 982struct scan_result_old { 983 u_int16_t isr_len; /* length (mult of 4) */ 984 u_int16_t isr_freq; /* MHz */ 985 u_int16_t isr_flags; /* channel flags */ 986 u_int8_t isr_noise; --- 1784 unchanged lines hidden --- | 980#ifdef COMPAT_FREEBSD6 981#define IEEE80211_IOC_SCAN_RESULTS_OLD 24 982 983struct scan_result_old { 984 u_int16_t isr_len; /* length (mult of 4) */ 985 u_int16_t isr_freq; /* MHz */ 986 u_int16_t isr_flags; /* channel flags */ 987 u_int8_t isr_noise; --- 1784 unchanged lines hidden --- |