Staging: vt6655: add TODO
[linux-2.6/linux-2.6-openrd.git] / drivers / staging / vt6655 / wcmd.h
blobc3bf3afafff3d458d8f9ccf5be76cbf738264bd3
1 /*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 * File: wcmd.h
21 * Purpose: Handles the management command interface functions
23 * Author: Lyndon Chen
25 * Date: May 8, 2002
29 #ifndef __WCMD_H__
30 #define __WCMD_H__
32 #if !defined(__TTYPE_H__)
33 #include "ttype.h"
34 #endif
35 #if !defined(__80211HDR_H__)
36 #include "80211hdr.h"
37 #endif
38 #if !defined(__80211MGR_H__)
39 #include "80211mgr.h"
40 #endif
42 /*--------------------- Export Definitions -------------------------*/
46 #define AUTHENTICATE_TIMEOUT 1000 //ms
47 #define ASSOCIATE_TIMEOUT 1000 //ms
50 // Command code
51 typedef enum tagCMD_CODE {
52 WLAN_CMD_BSSID_SCAN,
53 WLAN_CMD_SSID,
54 WLAN_CMD_DISASSOCIATE,
55 WLAN_CMD_DEAUTH,
56 WLAN_CMD_RX_PSPOLL,
57 WLAN_CMD_RADIO,
58 WLAN_CMD_CHANGE_BBSENSITIVITY,
59 WLAN_CMD_SETPOWER,
60 WLAN_CMD_TBTT_WAKEUP,
61 WLAN_CMD_BECON_SEND,
62 WLAN_CMD_CHANGE_ANTENNA,
63 WLAN_CMD_REMOVE_ALLKEY,
64 WLAN_CMD_MAC_DISPOWERSAVING,
65 WLAN_CMD_11H_CHSW,
66 WLAN_CMD_RUN_AP
67 } CMD_CODE, DEF* PCMD_CODE;
69 #define CMD_Q_SIZE 32
71 typedef enum tagCMD_STATUS {
73 CMD_STATUS_SUCCESS = 0,
74 CMD_STATUS_FAILURE,
75 CMD_STATUS_RESOURCES,
76 CMD_STATUS_TIMEOUT,
77 CMD_STATUS_PENDING
79 } CMD_STATUS, DEF* PCMD_STATUS;
82 typedef struct tagCMD_ITEM {
83 CMD_CODE eCmd;
84 BYTE abyCmdDesireSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
85 BOOL bNeedRadioOFF;
86 WORD wDeAuthenReason;
87 BOOL bRadioCmd;
88 BOOL bForceSCAN;
89 } CMD_ITEM, DEF* PCMD_ITEM;
91 // Command state
92 typedef enum tagCMD_STATE {
93 WLAN_CMD_SCAN_START,
94 WLAN_CMD_SCAN_END,
95 WLAN_CMD_DISASSOCIATE_START,
96 WLAN_CMD_SSID_START,
97 WLAN_AUTHENTICATE_WAIT,
98 WLAN_ASSOCIATE_WAIT,
99 WLAN_DISASSOCIATE_WAIT,
100 WLAN_CMD_TX_PSPACKET_START,
101 WLAN_CMD_AP_MODE_START,
102 WLAN_CMD_RADIO_START,
103 WLAN_CMD_CHECK_BBSENSITIVITY_CHANGE,
104 WLAN_CMD_IDLE
105 } CMD_STATE, DEF* PCMD_STATE;
109 /*--------------------- Export Classes ----------------------------*/
111 /*--------------------- Export Variables --------------------------*/
114 /*--------------------- Export Types ------------------------------*/
117 /*--------------------- Export Functions --------------------------*/
118 VOID
119 vResetCommandTimer(
120 IN HANDLE hDeviceContext
123 VOID
124 vCommandTimer (
125 IN HANDLE hDeviceContext
128 BOOL bClearBSSID_SCAN(
129 IN HANDLE hDeviceContext
132 BOOL
133 bScheduleCommand(
134 IN HANDLE hDeviceContext,
135 IN CMD_CODE eCommand,
136 IN PBYTE pbyItem0
139 VOID
140 vCommandTimerWait(
141 IN HANDLE hDeviceContext,
142 IN UINT MSecond
144 #ifdef TxInSleep
145 VOID
146 BSSvSecondTxData(
147 IN HANDLE hDeviceContext
149 #endif
151 #endif //__WCMD_H__