Back to home page

OSCL-LXR

 
 

    


0001 /******************************************************************************
0002  *
0003  * This file is provided under a dual BSD/GPLv2 license.  When using or
0004  * redistributing this file, you may do so under either license.
0005  *
0006  * GPL LICENSE SUMMARY
0007  *
0008  * Copyright(c) 2013 - 2014 Intel Corporation. All rights reserved.
0009  * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
0010  *
0011  * This program is free software; you can redistribute it and/or modify
0012  * it under the terms of version 2 of the GNU General Public License as
0013  * published by the Free Software Foundation.
0014  *
0015  * This program is distributed in the hope that it will be useful, but
0016  * WITHOUT ANY WARRANTY; without even the implied warranty of
0017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0018  * General Public License for more details.
0019  *
0020  * The full GNU General Public License is included in this distribution
0021  * in the file called COPYING.
0022  *
0023  * Contact Information:
0024  *  Intel Linux Wireless <linuxwifi@intel.com>
0025  * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
0026  *
0027  * BSD LICENSE
0028  *
0029  * Copyright(c) 2013 - 2014 Intel Corporation. All rights reserved.
0030  * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
0031  * All rights reserved.
0032  *
0033  * Redistribution and use in source and binary forms, with or without
0034  * modification, are permitted provided that the following conditions
0035  * are met:
0036  *
0037  *  * Redistributions of source code must retain the above copyright
0038  *    notice, this list of conditions and the following disclaimer.
0039  *  * Redistributions in binary form must reproduce the above copyright
0040  *    notice, this list of conditions and the following disclaimer in
0041  *    the documentation and/or other materials provided with the
0042  *    distribution.
0043  *  * Neither the name Intel Corporation nor the names of its
0044  *    contributors may be used to endorse or promote products derived
0045  *    from this software without specific prior written permission.
0046  *
0047  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0048  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0049  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0050  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0051  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0052  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0053  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0054  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0055  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0056  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0057  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0058  *
0059  *****************************************************************************/
0060 
0061 #ifndef __IWL_MVM_TESTMODE_H__
0062 #define __IWL_MVM_TESTMODE_H__
0063 
0064 /**
0065  * enum iwl_mvm_testmode_attrs - testmode attributes inside NL80211_ATTR_TESTDATA
0066  * @IWL_MVM_TM_ATTR_UNSPEC: (invalid attribute)
0067  * @IWL_MVM_TM_ATTR_CMD: sub command, see &enum iwl_mvm_testmode_commands (u32)
0068  * @IWL_MVM_TM_ATTR_NOA_DURATION: requested NoA duration (u32)
0069  * @IWL_MVM_TM_ATTR_BEACON_FILTER_STATE: beacon filter state (0 or 1, u32)
0070  */
0071 enum iwl_mvm_testmode_attrs {
0072     IWL_MVM_TM_ATTR_UNSPEC,
0073     IWL_MVM_TM_ATTR_CMD,
0074     IWL_MVM_TM_ATTR_NOA_DURATION,
0075     IWL_MVM_TM_ATTR_BEACON_FILTER_STATE,
0076 
0077     /* keep last */
0078     NUM_IWL_MVM_TM_ATTRS,
0079     IWL_MVM_TM_ATTR_MAX = NUM_IWL_MVM_TM_ATTRS - 1,
0080 };
0081 
0082 /**
0083  * enum iwl_mvm_testmode_commands - MVM testmode commands
0084  * @IWL_MVM_TM_CMD_SET_NOA: set NoA on GO vif for testing
0085  * @IWL_MVM_TM_CMD_SET_BEACON_FILTER: turn beacon filtering off/on
0086  */
0087 enum iwl_mvm_testmode_commands {
0088     IWL_MVM_TM_CMD_SET_NOA,
0089     IWL_MVM_TM_CMD_SET_BEACON_FILTER,
0090 };
0091 
0092 #endif /* __IWL_MVM_TESTMODE_H__ */