xref: /freebsd-src/sys/contrib/dev/iwlwifi/mvm/testmode.h (revision a4128aad8503277614f2d214011ef60a19447b83)
1*a4128aadSBjoern A. Zeeb /******************************************************************************
2*a4128aadSBjoern A. Zeeb  *
3*a4128aadSBjoern A. Zeeb  * This file is provided under a dual BSD/GPLv2 license.  When using or
4*a4128aadSBjoern A. Zeeb  * redistributing this file, you may do so under either license.
5*a4128aadSBjoern A. Zeeb  *
6*a4128aadSBjoern A. Zeeb  * GPL LICENSE SUMMARY
7*a4128aadSBjoern A. Zeeb  *
8*a4128aadSBjoern A. Zeeb  * Copyright(c) 2013 - 2014 Intel Corporation. All rights reserved.
9*a4128aadSBjoern A. Zeeb  * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
10*a4128aadSBjoern A. Zeeb  *
11*a4128aadSBjoern A. Zeeb  * This program is free software; you can redistribute it and/or modify
12*a4128aadSBjoern A. Zeeb  * it under the terms of version 2 of the GNU General Public License as
13*a4128aadSBjoern A. Zeeb  * published by the Free Software Foundation.
14*a4128aadSBjoern A. Zeeb  *
15*a4128aadSBjoern A. Zeeb  * This program is distributed in the hope that it will be useful, but
16*a4128aadSBjoern A. Zeeb  * WITHOUT ANY WARRANTY; without even the implied warranty of
17*a4128aadSBjoern A. Zeeb  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18*a4128aadSBjoern A. Zeeb  * General Public License for more details.
19*a4128aadSBjoern A. Zeeb  *
20*a4128aadSBjoern A. Zeeb  * The full GNU General Public License is included in this distribution
21*a4128aadSBjoern A. Zeeb  * in the file called COPYING.
22*a4128aadSBjoern A. Zeeb  *
23*a4128aadSBjoern A. Zeeb  * Contact Information:
24*a4128aadSBjoern A. Zeeb  *  Intel Linux Wireless <linuxwifi@intel.com>
25*a4128aadSBjoern A. Zeeb  * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
26*a4128aadSBjoern A. Zeeb  *
27*a4128aadSBjoern A. Zeeb  * BSD LICENSE
28*a4128aadSBjoern A. Zeeb  *
29*a4128aadSBjoern A. Zeeb  * Copyright(c) 2013 - 2014 Intel Corporation. All rights reserved.
30*a4128aadSBjoern A. Zeeb  * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
31*a4128aadSBjoern A. Zeeb  * All rights reserved.
32*a4128aadSBjoern A. Zeeb  *
33*a4128aadSBjoern A. Zeeb  * Redistribution and use in source and binary forms, with or without
34*a4128aadSBjoern A. Zeeb  * modification, are permitted provided that the following conditions
35*a4128aadSBjoern A. Zeeb  * are met:
36*a4128aadSBjoern A. Zeeb  *
37*a4128aadSBjoern A. Zeeb  *  * Redistributions of source code must retain the above copyright
38*a4128aadSBjoern A. Zeeb  *    notice, this list of conditions and the following disclaimer.
39*a4128aadSBjoern A. Zeeb  *  * Redistributions in binary form must reproduce the above copyright
40*a4128aadSBjoern A. Zeeb  *    notice, this list of conditions and the following disclaimer in
41*a4128aadSBjoern A. Zeeb  *    the documentation and/or other materials provided with the
42*a4128aadSBjoern A. Zeeb  *    distribution.
43*a4128aadSBjoern A. Zeeb  *  * Neither the name Intel Corporation nor the names of its
44*a4128aadSBjoern A. Zeeb  *    contributors may be used to endorse or promote products derived
45*a4128aadSBjoern A. Zeeb  *    from this software without specific prior written permission.
46*a4128aadSBjoern A. Zeeb  *
47*a4128aadSBjoern A. Zeeb  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
48*a4128aadSBjoern A. Zeeb  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
49*a4128aadSBjoern A. Zeeb  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
50*a4128aadSBjoern A. Zeeb  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
51*a4128aadSBjoern A. Zeeb  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
52*a4128aadSBjoern A. Zeeb  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
53*a4128aadSBjoern A. Zeeb  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
54*a4128aadSBjoern A. Zeeb  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
55*a4128aadSBjoern A. Zeeb  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
56*a4128aadSBjoern A. Zeeb  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
57*a4128aadSBjoern A. Zeeb  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58*a4128aadSBjoern A. Zeeb  *
59*a4128aadSBjoern A. Zeeb  *****************************************************************************/
60*a4128aadSBjoern A. Zeeb 
61*a4128aadSBjoern A. Zeeb #ifndef __IWL_MVM_TESTMODE_H__
62*a4128aadSBjoern A. Zeeb #define __IWL_MVM_TESTMODE_H__
63*a4128aadSBjoern A. Zeeb 
64*a4128aadSBjoern A. Zeeb /**
65*a4128aadSBjoern A. Zeeb  * enum iwl_mvm_testmode_attrs - testmode attributes inside NL80211_ATTR_TESTDATA
66*a4128aadSBjoern A. Zeeb  * @IWL_MVM_TM_ATTR_UNSPEC: (invalid attribute)
67*a4128aadSBjoern A. Zeeb  * @IWL_MVM_TM_ATTR_CMD: sub command, see &enum iwl_mvm_testmode_commands (u32)
68*a4128aadSBjoern A. Zeeb  * @IWL_MVM_TM_ATTR_NOA_DURATION: requested NoA duration (u32)
69*a4128aadSBjoern A. Zeeb  * @IWL_MVM_TM_ATTR_BEACON_FILTER_STATE: beacon filter state (0 or 1, u32)
70*a4128aadSBjoern A. Zeeb  */
71*a4128aadSBjoern A. Zeeb enum iwl_mvm_testmode_attrs {
72*a4128aadSBjoern A. Zeeb 	IWL_MVM_TM_ATTR_UNSPEC,
73*a4128aadSBjoern A. Zeeb 	IWL_MVM_TM_ATTR_CMD,
74*a4128aadSBjoern A. Zeeb 	IWL_MVM_TM_ATTR_NOA_DURATION,
75*a4128aadSBjoern A. Zeeb 	IWL_MVM_TM_ATTR_BEACON_FILTER_STATE,
76*a4128aadSBjoern A. Zeeb 
77*a4128aadSBjoern A. Zeeb 	/* keep last */
78*a4128aadSBjoern A. Zeeb 	NUM_IWL_MVM_TM_ATTRS,
79*a4128aadSBjoern A. Zeeb 	IWL_MVM_TM_ATTR_MAX = NUM_IWL_MVM_TM_ATTRS - 1,
80*a4128aadSBjoern A. Zeeb };
81*a4128aadSBjoern A. Zeeb 
82*a4128aadSBjoern A. Zeeb /**
83*a4128aadSBjoern A. Zeeb  * enum iwl_mvm_testmode_commands - MVM testmode commands
84*a4128aadSBjoern A. Zeeb  * @IWL_MVM_TM_CMD_SET_NOA: set NoA on GO vif for testing
85*a4128aadSBjoern A. Zeeb  * @IWL_MVM_TM_CMD_SET_BEACON_FILTER: turn beacon filtering off/on
86*a4128aadSBjoern A. Zeeb  */
87*a4128aadSBjoern A. Zeeb enum iwl_mvm_testmode_commands {
88*a4128aadSBjoern A. Zeeb 	IWL_MVM_TM_CMD_SET_NOA,
89*a4128aadSBjoern A. Zeeb 	IWL_MVM_TM_CMD_SET_BEACON_FILTER,
90*a4128aadSBjoern A. Zeeb };
91*a4128aadSBjoern A. Zeeb 
92*a4128aadSBjoern A. Zeeb #endif /* __IWL_MVM_TESTMODE_H__ */
93