/** @file moal_uap_priv.h * * @brief This file contains definition for extended private IOCTL call. * * * Copyright 2014-2020 NXP * * This software file (the File) is distributed by NXP * under the terms of the GNU General Public License Version 2, June 1991 * (the License). You may use, redistribute and/or modify the File in * accordance with the terms and conditions of the License, a copy of which * is available by writing to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. * * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE * ARE EXPRESSLY DISCLAIMED. The License provides additional details about * this warranty disclaimer. * */ /************************************************************************ Change log: 08/06/2010: initial version ************************************************************************/ #ifndef _MOAL_UAP_PRIV_H_ #define _MOAL_UAP_PRIV_H_ /** Private command ID */ #define WOAL_UAP_IOCTL 0x8BE0 /** Private command to get/set 256 chars */ #define WOAL_UAP_SET_GET_256_CHAR (WOAL_UAP_IOCTL + 1) /** Private command ID to FW reload */ #define WOAL_WL_FW_RELOAD 1 /** Private command ID to set AP configuration */ #define WOAL_AP_SET_CFG 2 /** Private command ID to set/get none */ #define WOAL_UAP_SETNONE_GETNONE (WOAL_UAP_IOCTL + 2) /** Private command ID to start UAP */ #define WOAL_UAP_START 1 /** Private command ID to stop UAP */ #define WOAL_UAP_STOP 2 /** Private command ID to start AP BSS */ #define WOAL_AP_BSS_START 3 /** Private command ID to stop AP BSS */ #define WOAL_AP_BSS_STOP 4 /** Private command ID to set one int/get word char */ #define WOAL_UAP_SETONEINT_GETWORDCHAR (WOAL_UAP_IOCTL + 3) /** Private command ID to get version */ #define WOAL_UAP_VERSION 1 /** Private command ID to get extended version */ #define WOAL_UAP_VEREXT 2 #ifdef WIFI_DIRECT_SUPPORT #if defined(STA_SUPPORT) && defined(UAP_SUPPORT) /** Private command ID to set one int/get one int */ #define WOAL_UAP_SETONEINT_GETONEINT (WOAL_UAP_IOCTL + 5) /** Private command ID for set/get BSS role */ #define WOAL_UAP_SET_GET_BSS_ROLE 1 #endif #endif /** Private command ID for hostcmd */ #define WOAL_UAP_HOST_CMD (WOAL_UAP_IOCTL + 17) /** The following command IDs are for Froyo app */ /** Private command ID to start AP BSS */ #define WOAL_UAP_FROYO_AP_BSS_START (WOAL_UAP_IOCTL + 24) /** Private command ID to stop AP BSS */ #define WOAL_UAP_FROYO_AP_BSS_STOP (WOAL_UAP_IOCTL + 26) /** Private command ID to set AP config */ #define WOAL_UAP_FROYO_AP_SET_CFG (WOAL_UAP_IOCTL + 27) /** Private command ID to start driver */ #define WOAL_UAP_FROYO_START (WOAL_UAP_IOCTL + 28) /** Private command ID to reload FW */ #define WOAL_UAP_FROYO_WL_FW_RELOAD (WOAL_UAP_IOCTL + 29) /** Private command ID to stop driver */ #define WOAL_UAP_FROYO_STOP (WOAL_UAP_IOCTL + 30) /** * iwpriv ioctl handlers */ static const struct iw_priv_args woal_uap_priv_args[] = { {WOAL_UAP_SETNONE_GETNONE, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, ""}, {WOAL_UAP_START, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, "start"}, {WOAL_UAP_STOP, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, "stop"}, {WOAL_AP_BSS_START, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, "bssstart"}, {WOAL_AP_BSS_STOP, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, "bssstop"}, {WOAL_UAP_SETONEINT_GETWORDCHAR, IW_PRIV_TYPE_INT | 1, IW_PRIV_TYPE_CHAR | 128, ""}, {WOAL_UAP_VERSION, IW_PRIV_TYPE_INT | 1, IW_PRIV_TYPE_CHAR | 128, "version"}, {WOAL_UAP_VEREXT, IW_PRIV_TYPE_INT | 1, IW_PRIV_TYPE_CHAR | 128, "verext"}, #ifdef WIFI_DIRECT_SUPPORT #if defined(STA_SUPPORT) && defined(UAP_SUPPORT) {WOAL_UAP_SETONEINT_GETONEINT, IW_PRIV_TYPE_INT | 1, IW_PRIV_TYPE_INT | 1, ""}, {WOAL_UAP_SET_GET_BSS_ROLE, IW_PRIV_TYPE_INT | 1, IW_PRIV_TYPE_INT | 1, "bssrole"}, #endif #endif {WOAL_UAP_SET_GET_256_CHAR, IW_PRIV_TYPE_CHAR | 256, IW_PRIV_TYPE_CHAR | 256, ""}, {WOAL_WL_FW_RELOAD, IW_PRIV_TYPE_CHAR | 256, IW_PRIV_TYPE_CHAR | 256, "fwreload"}, {WOAL_AP_SET_CFG, IW_PRIV_TYPE_CHAR | 256, IW_PRIV_TYPE_CHAR | 256, "apcfg"}, {WOAL_UAP_HOST_CMD, IW_PRIV_TYPE_BYTE | 2047, IW_PRIV_TYPE_BYTE | 2047, "hostcmd"}, {WOAL_UAP_FROYO_START, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, "START"}, {WOAL_UAP_FROYO_STOP, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, "STOP"}, {WOAL_UAP_FROYO_AP_BSS_START, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, "AP_BSS_START"}, {WOAL_UAP_FROYO_AP_BSS_STOP, IW_PRIV_TYPE_NONE, IW_PRIV_TYPE_NONE, "AP_BSS_STOP"}, {WOAL_UAP_FROYO_WL_FW_RELOAD, IW_PRIV_TYPE_CHAR | 256, IW_PRIV_TYPE_CHAR | 256, "WL_FW_RELOAD"}, {WOAL_UAP_FROYO_AP_SET_CFG, IW_PRIV_TYPE_CHAR | 256, IW_PRIV_TYPE_CHAR | 256, "AP_SET_CFG"}, }; #endif /* _MOAL_UAP_PRIV_H_ */