18c2ecf20Sopenharmony_ci/******************************************************************************
28c2ecf20Sopenharmony_ci *
38c2ecf20Sopenharmony_ci * This file is provided under a dual BSD/GPLv2 license.  When using or
48c2ecf20Sopenharmony_ci * redistributing this file, you may do so under either license.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * GPL LICENSE SUMMARY
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * Copyright(c) 2013 - 2014 Intel Corporation. All rights reserved.
98c2ecf20Sopenharmony_ci * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
128c2ecf20Sopenharmony_ci * it under the terms of version 2 of the GNU General Public License as
138c2ecf20Sopenharmony_ci * published by the Free Software Foundation.
148c2ecf20Sopenharmony_ci *
158c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful, but
168c2ecf20Sopenharmony_ci * WITHOUT ANY WARRANTY; without even the implied warranty of
178c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
188c2ecf20Sopenharmony_ci * General Public License for more details.
198c2ecf20Sopenharmony_ci *
208c2ecf20Sopenharmony_ci * The full GNU General Public License is included in this distribution
218c2ecf20Sopenharmony_ci * in the file called COPYING.
228c2ecf20Sopenharmony_ci *
238c2ecf20Sopenharmony_ci * Contact Information:
248c2ecf20Sopenharmony_ci *  Intel Linux Wireless <linuxwifi@intel.com>
258c2ecf20Sopenharmony_ci * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
268c2ecf20Sopenharmony_ci *
278c2ecf20Sopenharmony_ci * BSD LICENSE
288c2ecf20Sopenharmony_ci *
298c2ecf20Sopenharmony_ci * Copyright(c) 2013 - 2014 Intel Corporation. All rights reserved.
308c2ecf20Sopenharmony_ci * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
318c2ecf20Sopenharmony_ci * All rights reserved.
328c2ecf20Sopenharmony_ci *
338c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or without
348c2ecf20Sopenharmony_ci * modification, are permitted provided that the following conditions
358c2ecf20Sopenharmony_ci * are met:
368c2ecf20Sopenharmony_ci *
378c2ecf20Sopenharmony_ci *  * Redistributions of source code must retain the above copyright
388c2ecf20Sopenharmony_ci *    notice, this list of conditions and the following disclaimer.
398c2ecf20Sopenharmony_ci *  * Redistributions in binary form must reproduce the above copyright
408c2ecf20Sopenharmony_ci *    notice, this list of conditions and the following disclaimer in
418c2ecf20Sopenharmony_ci *    the documentation and/or other materials provided with the
428c2ecf20Sopenharmony_ci *    distribution.
438c2ecf20Sopenharmony_ci *  * Neither the name Intel Corporation nor the names of its
448c2ecf20Sopenharmony_ci *    contributors may be used to endorse or promote products derived
458c2ecf20Sopenharmony_ci *    from this software without specific prior written permission.
468c2ecf20Sopenharmony_ci *
478c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
488c2ecf20Sopenharmony_ci * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
498c2ecf20Sopenharmony_ci * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
508c2ecf20Sopenharmony_ci * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
518c2ecf20Sopenharmony_ci * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
528c2ecf20Sopenharmony_ci * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
538c2ecf20Sopenharmony_ci * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
548c2ecf20Sopenharmony_ci * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
558c2ecf20Sopenharmony_ci * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
568c2ecf20Sopenharmony_ci * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
578c2ecf20Sopenharmony_ci * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
588c2ecf20Sopenharmony_ci *
598c2ecf20Sopenharmony_ci *****************************************************************************/
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci#ifndef __IWL_MVM_TESTMODE_H__
628c2ecf20Sopenharmony_ci#define __IWL_MVM_TESTMODE_H__
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci/**
658c2ecf20Sopenharmony_ci * enum iwl_mvm_testmode_attrs - testmode attributes inside NL80211_ATTR_TESTDATA
668c2ecf20Sopenharmony_ci * @IWL_MVM_TM_ATTR_UNSPEC: (invalid attribute)
678c2ecf20Sopenharmony_ci * @IWL_MVM_TM_ATTR_CMD: sub command, see &enum iwl_mvm_testmode_commands (u32)
688c2ecf20Sopenharmony_ci * @IWL_MVM_TM_ATTR_NOA_DURATION: requested NoA duration (u32)
698c2ecf20Sopenharmony_ci * @IWL_MVM_TM_ATTR_BEACON_FILTER_STATE: beacon filter state (0 or 1, u32)
708c2ecf20Sopenharmony_ci */
718c2ecf20Sopenharmony_cienum iwl_mvm_testmode_attrs {
728c2ecf20Sopenharmony_ci	IWL_MVM_TM_ATTR_UNSPEC,
738c2ecf20Sopenharmony_ci	IWL_MVM_TM_ATTR_CMD,
748c2ecf20Sopenharmony_ci	IWL_MVM_TM_ATTR_NOA_DURATION,
758c2ecf20Sopenharmony_ci	IWL_MVM_TM_ATTR_BEACON_FILTER_STATE,
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci	/* keep last */
788c2ecf20Sopenharmony_ci	NUM_IWL_MVM_TM_ATTRS,
798c2ecf20Sopenharmony_ci	IWL_MVM_TM_ATTR_MAX = NUM_IWL_MVM_TM_ATTRS - 1,
808c2ecf20Sopenharmony_ci};
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci/**
838c2ecf20Sopenharmony_ci * enum iwl_mvm_testmode_commands - MVM testmode commands
848c2ecf20Sopenharmony_ci * @IWL_MVM_TM_CMD_SET_NOA: set NoA on GO vif for testing
858c2ecf20Sopenharmony_ci * @IWL_MVM_TM_CMD_SET_BEACON_FILTER: turn beacon filtering off/on
868c2ecf20Sopenharmony_ci */
878c2ecf20Sopenharmony_cienum iwl_mvm_testmode_commands {
888c2ecf20Sopenharmony_ci	IWL_MVM_TM_CMD_SET_NOA,
898c2ecf20Sopenharmony_ci	IWL_MVM_TM_CMD_SET_BEACON_FILTER,
908c2ecf20Sopenharmony_ci};
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci#endif /* __IWL_MVM_TESTMODE_H__ */
93