PageRenderTime 71ms CodeModel.GetById 24ms app.highlight 7ms RepoModel.GetById 37ms app.codeStats 0ms

/drivers/net/wireless/sd8797/mlinux/moal_uap_priv.h

https://bitbucket.org/cyanogenmod/android_kernel_asus_tf300t
C Header | 194 lines | 134 code | 11 blank | 49 comment | 2 complexity | a9f995bffac0d54a96446f1c1ce85955 MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
  1/** @file  moal_uap_priv.h
  2  *
  3  * @brief This file contains definition for extended private IOCTL call.
  4  *
  5  * Copyright (C) 2010-2011, Marvell International Ltd.
  6  *
  7  * This software file (the "File") is distributed by Marvell International
  8  * Ltd. under the terms of the GNU General Public License Version 2, June 1991
  9  * (the "License").  You may use, redistribute and/or modify this File in
 10  * accordance with the terms and conditions of the License, a copy of which
 11  * is available by writing to the Free Software Foundation, Inc.,
 12  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
 13  * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
 14  *
 15  * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
 16  * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
 17  * ARE EXPRESSLY DISCLAIMED.  The License provides additional details about
 18  * this warranty disclaimer.
 19  *
 20  */
 21
 22/************************************************************************
 23Change log:
 24    08/06/2010: initial version
 25************************************************************************/
 26
 27#ifndef _MOAL_UAP_PRIV_H_
 28#define _MOAL_UAP_PRIV_H_
 29
 30/** Private command ID */
 31#define WOAL_UAP_IOCTL                          0x8BE0
 32
 33/** Private command to get/set 256 chars */
 34#define WOAL_UAP_SET_GET_256_CHAR               (WOAL_UAP_IOCTL + 1)
 35/** Private command ID to FW reload */
 36#define WOAL_WL_FW_RELOAD           1
 37/** Private command ID to set AP configuration */
 38#define WOAL_AP_SET_CFG             2
 39
 40/** Private command ID to set/get none */
 41#define WOAL_UAP_SETNONE_GETNONE                (WOAL_UAP_IOCTL + 2)
 42/** Private command ID to start UAP */
 43#define WOAL_UAP_START              1
 44/** Private command ID to stop UAP */
 45#define WOAL_UAP_STOP               2
 46/** Private command ID to start AP BSS */
 47#define WOAL_AP_BSS_START           3
 48/** Private command ID to stop AP BSS */
 49#define WOAL_AP_BSS_STOP            4
 50
 51/** Private command ID to set one int/get word char */
 52#define WOAL_UAP_SETONEINT_GETWORDCHAR          (WOAL_UAP_IOCTL + 3)
 53/** Private command ID to get version */
 54#define WOAL_UAP_VERSION            1
 55/** Private command ID to get extended version */
 56#define WOAL_UAP_VEREXT             2
 57
 58#if defined(WIFI_DIRECT_SUPPORT)
 59#if defined(STA_SUPPORT) && defined(UAP_SUPPORT)
 60/** Private command ID to set one int/get one int */
 61#define WOAL_UAP_SETONEINT_GETONEINT            (WOAL_UAP_IOCTL + 5)
 62/** Private command ID for set/get BSS role */
 63#define WOAL_UAP_SET_GET_BSS_ROLE       1
 64#endif
 65#endif
 66
 67/** Private command ID for hostcmd */
 68#define WOAL_UAP_HOST_CMD                       (WOAL_UAP_IOCTL + 17)
 69
 70/** The following command IDs are for Froyo app */
 71/** Private command ID to start AP BSS */
 72#define WOAL_UAP_FROYO_AP_BSS_START             (WOAL_UAP_IOCTL + 24)
 73/** Private command ID to stop AP BSS */
 74#define WOAL_UAP_FROYO_AP_BSS_STOP              (WOAL_UAP_IOCTL + 26)
 75/** Private command ID to set AP config */
 76#define WOAL_UAP_FROYO_AP_SET_CFG               (WOAL_UAP_IOCTL + 27)
 77/** Private command ID to start driver */
 78#define WOAL_UAP_FROYO_START                    (WOAL_UAP_IOCTL + 28)
 79/** Private command ID to reload FW */
 80#define WOAL_UAP_FROYO_WL_FW_RELOAD             (WOAL_UAP_IOCTL + 29)
 81/** Private command ID to stop driver */
 82#define WOAL_UAP_FROYO_STOP                     (WOAL_UAP_IOCTL + 30)
 83
 84/**
 85 * iwpriv ioctl handlers
 86 */
 87static const struct iw_priv_args woal_uap_priv_args[] = {
 88    {
 89     WOAL_UAP_SETNONE_GETNONE,
 90     IW_PRIV_TYPE_NONE,
 91     IW_PRIV_TYPE_NONE,
 92     ""},
 93    {
 94     WOAL_UAP_START,
 95     IW_PRIV_TYPE_NONE,
 96     IW_PRIV_TYPE_NONE,
 97     "start"},
 98    {
 99     WOAL_UAP_STOP,
100     IW_PRIV_TYPE_NONE,
101     IW_PRIV_TYPE_NONE,
102     "stop"},
103    {
104     WOAL_AP_BSS_START,
105     IW_PRIV_TYPE_NONE,
106     IW_PRIV_TYPE_NONE,
107     "bssstart"},
108    {
109     WOAL_AP_BSS_STOP,
110     IW_PRIV_TYPE_NONE,
111     IW_PRIV_TYPE_NONE,
112     "bssstop"},
113    {
114     WOAL_UAP_SETONEINT_GETWORDCHAR,
115     IW_PRIV_TYPE_INT | 1,
116     IW_PRIV_TYPE_CHAR | 128,
117     ""},
118    {
119     WOAL_UAP_VERSION,
120     IW_PRIV_TYPE_INT | 1,
121     IW_PRIV_TYPE_CHAR | 128,
122     "version"},
123    {
124     WOAL_UAP_VEREXT,
125     IW_PRIV_TYPE_INT | 1,
126     IW_PRIV_TYPE_CHAR | 128,
127     "verext"},
128#if defined(WIFI_DIRECT_SUPPORT)
129#if defined(STA_SUPPORT) && defined(UAP_SUPPORT)
130    {
131     WOAL_UAP_SETONEINT_GETONEINT,
132     IW_PRIV_TYPE_INT | 1,
133     IW_PRIV_TYPE_INT | 1,
134     ""},
135    {
136     WOAL_UAP_SET_GET_BSS_ROLE,
137     IW_PRIV_TYPE_INT | 1,
138     IW_PRIV_TYPE_INT | 1,
139     "bssrole"},
140#endif
141#endif
142    {
143     WOAL_UAP_SET_GET_256_CHAR,
144     IW_PRIV_TYPE_CHAR | 256,
145     IW_PRIV_TYPE_CHAR | 256,
146     ""},
147    {
148     WOAL_WL_FW_RELOAD,
149     IW_PRIV_TYPE_CHAR | 256,
150     IW_PRIV_TYPE_CHAR | 256,
151     "fwreload"},
152    {
153     WOAL_AP_SET_CFG,
154     IW_PRIV_TYPE_CHAR | 256,
155     IW_PRIV_TYPE_CHAR | 256,
156     "apcfg"},
157    {
158     WOAL_UAP_HOST_CMD,
159     IW_PRIV_TYPE_BYTE | 2047,
160     IW_PRIV_TYPE_BYTE | 2047,
161     "hostcmd"},
162    {
163     WOAL_UAP_FROYO_START,
164     IW_PRIV_TYPE_NONE,
165     IW_PRIV_TYPE_NONE,
166     "START"},
167    {
168     WOAL_UAP_FROYO_STOP,
169     IW_PRIV_TYPE_NONE,
170     IW_PRIV_TYPE_NONE,
171     "STOP"},
172    {
173     WOAL_UAP_FROYO_AP_BSS_START,
174     IW_PRIV_TYPE_NONE,
175     IW_PRIV_TYPE_NONE,
176     "AP_BSS_START"},
177    {
178     WOAL_UAP_FROYO_AP_BSS_STOP,
179     IW_PRIV_TYPE_NONE,
180     IW_PRIV_TYPE_NONE,
181     "AP_BSS_STOP"},
182    {
183     WOAL_UAP_FROYO_WL_FW_RELOAD,
184     IW_PRIV_TYPE_CHAR | 256,
185     IW_PRIV_TYPE_CHAR | 256,
186     "WL_FW_RELOAD"},
187    {
188     WOAL_UAP_FROYO_AP_SET_CFG,
189     IW_PRIV_TYPE_CHAR | 256,
190     IW_PRIV_TYPE_CHAR | 256,
191     "AP_SET_CFG"},
192};
193
194#endif /* _MOAL_UAP_PRIV_H_ */