xref: /freebsd/lib/lib80211/lib80211_ioctl.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1*127be1a7SAdrian Chadd /*
2*127be1a7SAdrian Chadd  * Copyright 2001 The Aerospace Corporation.  All rights reserved.
3*127be1a7SAdrian Chadd  *
4*127be1a7SAdrian Chadd  * Redistribution and use in source and binary forms, with or without
5*127be1a7SAdrian Chadd  * modification, are permitted provided that the following conditions
6*127be1a7SAdrian Chadd  * are met:
7*127be1a7SAdrian Chadd  * 1. Redistributions of source code must retain the above copyright
8*127be1a7SAdrian Chadd  *    notice, this list of conditions and the following disclaimer.
9*127be1a7SAdrian Chadd  * 2. Redistributions in binary form must reproduce the above copyright
10*127be1a7SAdrian Chadd  *    notice, this list of conditions and the following disclaimer in the
11*127be1a7SAdrian Chadd  *    documentation and/or other materials provided with the distribution.
12*127be1a7SAdrian Chadd  * 3. The name of The Aerospace Corporation may not be used to endorse or
13*127be1a7SAdrian Chadd  *    promote products derived from this software.
14*127be1a7SAdrian Chadd  *
15*127be1a7SAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE AEROSPACE CORPORATION ``AS IS'' AND
16*127be1a7SAdrian Chadd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*127be1a7SAdrian Chadd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*127be1a7SAdrian Chadd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE
19*127be1a7SAdrian Chadd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*127be1a7SAdrian Chadd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*127be1a7SAdrian Chadd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*127be1a7SAdrian Chadd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*127be1a7SAdrian Chadd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*127be1a7SAdrian Chadd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*127be1a7SAdrian Chadd  * SUCH DAMAGE.
26*127be1a7SAdrian Chadd  */
27*127be1a7SAdrian Chadd 
28*127be1a7SAdrian Chadd /*-
29*127be1a7SAdrian Chadd  * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
30*127be1a7SAdrian Chadd  * All rights reserved.
31*127be1a7SAdrian Chadd  *
32*127be1a7SAdrian Chadd  * This code is derived from software contributed to The NetBSD Foundation
33*127be1a7SAdrian Chadd  * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
34*127be1a7SAdrian Chadd  * NASA Ames Research Center.
35*127be1a7SAdrian Chadd  *
36*127be1a7SAdrian Chadd  * Redistribution and use in source and binary forms, with or without
37*127be1a7SAdrian Chadd  * modification, are permitted provided that the following conditions
38*127be1a7SAdrian Chadd  * are met:
39*127be1a7SAdrian Chadd  * 1. Redistributions of source code must retain the above copyright
40*127be1a7SAdrian Chadd  *    notice, this list of conditions and the following disclaimer.
41*127be1a7SAdrian Chadd  * 2. Redistributions in binary form must reproduce the above copyright
42*127be1a7SAdrian Chadd  *    notice, this list of conditions and the following disclaimer in the
43*127be1a7SAdrian Chadd  *    documentation and/or other materials provided with the distribution.
44*127be1a7SAdrian Chadd  *
45*127be1a7SAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
46*127be1a7SAdrian Chadd  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
47*127be1a7SAdrian Chadd  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
48*127be1a7SAdrian Chadd  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
49*127be1a7SAdrian Chadd  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
50*127be1a7SAdrian Chadd  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
51*127be1a7SAdrian Chadd  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
52*127be1a7SAdrian Chadd  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
53*127be1a7SAdrian Chadd  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
54*127be1a7SAdrian Chadd  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
55*127be1a7SAdrian Chadd  * POSSIBILITY OF SUCH DAMAGE.
56*127be1a7SAdrian Chadd  */
57*127be1a7SAdrian Chadd 
58*127be1a7SAdrian Chadd #ifndef	__LIB80211_IOCTL_H__
59*127be1a7SAdrian Chadd #define	__LIB80211_IOCTL_H__
60*127be1a7SAdrian Chadd 
61*127be1a7SAdrian Chadd extern	int lib80211_get80211(int s, const char *name, int type, void *data,
62*127be1a7SAdrian Chadd 	    int len);
63*127be1a7SAdrian Chadd extern	int lib80211_get80211len(int s, const char *name, int type, void *data,
64*127be1a7SAdrian Chadd 	    int len, int *plen);
65*127be1a7SAdrian Chadd extern	int lib80211_get80211val(int s, const char *name, int type, int *val);
66*127be1a7SAdrian Chadd extern	int lib80211_set80211(int s, const char *name, int type, int val,
67*127be1a7SAdrian Chadd 	    int len, void *data);
68*127be1a7SAdrian Chadd 
69*127be1a7SAdrian Chadd #endif	/* __LIB80211_IOCTL_H__ */
70