1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
21 #ifndef __RTW_ANDROID_H__
22 #define __RTW_ANDROID_H__
24 #include <linux/module.h>
25 #include <linux/netdevice.h>
27 enum ANDROID_WIFI_CMD
{
28 ANDROID_WIFI_CMD_START
,
29 ANDROID_WIFI_CMD_STOP
,
30 ANDROID_WIFI_CMD_SCAN_ACTIVE
,
31 ANDROID_WIFI_CMD_SCAN_PASSIVE
,
32 ANDROID_WIFI_CMD_RSSI
,
33 ANDROID_WIFI_CMD_LINKSPEED
,
34 ANDROID_WIFI_CMD_RXFILTER_START
,
35 ANDROID_WIFI_CMD_RXFILTER_STOP
,
36 ANDROID_WIFI_CMD_RXFILTER_ADD
,
37 ANDROID_WIFI_CMD_RXFILTER_REMOVE
,
38 ANDROID_WIFI_CMD_BTCOEXSCAN_START
,
39 ANDROID_WIFI_CMD_BTCOEXSCAN_STOP
,
40 ANDROID_WIFI_CMD_BTCOEXMODE
,
41 ANDROID_WIFI_CMD_SETSUSPENDOPT
,
42 ANDROID_WIFI_CMD_P2P_DEV_ADDR
,
43 ANDROID_WIFI_CMD_SETFWPATH
,
44 ANDROID_WIFI_CMD_SETBAND
,
45 ANDROID_WIFI_CMD_GETBAND
,
46 ANDROID_WIFI_CMD_COUNTRY
,
47 ANDROID_WIFI_CMD_P2P_SET_NOA
,
48 ANDROID_WIFI_CMD_P2P_GET_NOA
,
49 ANDROID_WIFI_CMD_P2P_SET_PS
,
50 ANDROID_WIFI_CMD_SET_AP_WPS_P2P_IE
,
51 ANDROID_WIFI_CMD_MACADDR
,
52 ANDROID_WIFI_CMD_BLOCK
,
53 ANDROID_WIFI_CMD_WFD_ENABLE
,
54 ANDROID_WIFI_CMD_WFD_DISABLE
,
55 ANDROID_WIFI_CMD_WFD_SET_TCPPORT
,
56 ANDROID_WIFI_CMD_WFD_SET_MAX_TPUT
,
57 ANDROID_WIFI_CMD_WFD_SET_DEVTYPE
,
61 int rtw_android_cmdstr_to_num(char *cmdstr
);
62 int rtw_android_priv_cmd(struct net_device
*net
, struct ifreq
*ifr
, int cmd
);
64 #endif /* __RTW_ANDROID_H__ */