Path: blob/main/sys/contrib/dev/iwlwifi/mvm/testmode.h
48287 views
/******************************************************************************1*2* This file is provided under a dual BSD/GPLv2 license. When using or3* redistributing this file, you may do so under either license.4*5* GPL LICENSE SUMMARY6*7* Copyright(c) 2013 - 2014 Intel Corporation. All rights reserved.8* Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH9*10* This program is free software; you can redistribute it and/or modify11* it under the terms of version 2 of the GNU General Public License as12* published by the Free Software Foundation.13*14* This program is distributed in the hope that it will be useful, but15* WITHOUT ANY WARRANTY; without even the implied warranty of16* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU17* General Public License for more details.18*19* The full GNU General Public License is included in this distribution20* in the file called COPYING.21*22* Contact Information:23* Intel Linux Wireless <[email protected]>24* Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-649725*26* BSD LICENSE27*28* Copyright(c) 2013 - 2014 Intel Corporation. All rights reserved.29* Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH30* All rights reserved.31*32* Redistribution and use in source and binary forms, with or without33* modification, are permitted provided that the following conditions34* are met:35*36* * Redistributions of source code must retain the above copyright37* notice, this list of conditions and the following disclaimer.38* * Redistributions in binary form must reproduce the above copyright39* notice, this list of conditions and the following disclaimer in40* the documentation and/or other materials provided with the41* distribution.42* * Neither the name Intel Corporation nor the names of its43* contributors may be used to endorse or promote products derived44* from this software without specific prior written permission.45*46* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS47* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT48* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR49* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT50* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,51* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT52* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,53* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY54* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT55* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE56* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.57*58*****************************************************************************/5960#ifndef __IWL_MVM_TESTMODE_H__61#define __IWL_MVM_TESTMODE_H__6263/**64* enum iwl_mvm_testmode_attrs - testmode attributes inside NL80211_ATTR_TESTDATA65* @IWL_MVM_TM_ATTR_UNSPEC: (invalid attribute)66* @IWL_MVM_TM_ATTR_CMD: sub command, see &enum iwl_mvm_testmode_commands (u32)67* @IWL_MVM_TM_ATTR_NOA_DURATION: requested NoA duration (u32)68* @IWL_MVM_TM_ATTR_BEACON_FILTER_STATE: beacon filter state (0 or 1, u32)69*/70enum iwl_mvm_testmode_attrs {71IWL_MVM_TM_ATTR_UNSPEC,72IWL_MVM_TM_ATTR_CMD,73IWL_MVM_TM_ATTR_NOA_DURATION,74IWL_MVM_TM_ATTR_BEACON_FILTER_STATE,7576/* keep last */77NUM_IWL_MVM_TM_ATTRS,78IWL_MVM_TM_ATTR_MAX = NUM_IWL_MVM_TM_ATTRS - 1,79};8081/**82* enum iwl_mvm_testmode_commands - MVM testmode commands83* @IWL_MVM_TM_CMD_SET_NOA: set NoA on GO vif for testing84* @IWL_MVM_TM_CMD_SET_BEACON_FILTER: turn beacon filtering off/on85*/86enum iwl_mvm_testmode_commands {87IWL_MVM_TM_CMD_SET_NOA,88IWL_MVM_TM_CMD_SET_BEACON_FILTER,89};9091#endif /* __IWL_MVM_TESTMODE_H__ */929394