2
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
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.
21
* Purpose: Handles the management command interface functions
36
/*--------------------- Export Definitions -------------------------*/
40
#define AUTHENTICATE_TIMEOUT 1000 //ms
41
#define ASSOCIATE_TIMEOUT 1000 //ms
45
typedef enum tagCMD_CODE {
48
WLAN_CMD_DISASSOCIATE,
52
WLAN_CMD_CHANGE_BBSENSITIVITY,
56
WLAN_CMD_CHANGE_ANTENNA,
57
WLAN_CMD_REMOVE_ALLKEY,
58
WLAN_CMD_MAC_DISPOWERSAVING,
61
} CMD_CODE, *PCMD_CODE;
65
typedef enum tagCMD_STATUS {
67
CMD_STATUS_SUCCESS = 0,
73
} CMD_STATUS, *PCMD_STATUS;
75
typedef struct tagCMD_ITEM {
77
BYTE abyCmdDesireSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
82
} CMD_ITEM, *PCMD_ITEM;
85
typedef enum tagCMD_STATE {
88
WLAN_CMD_DISASSOCIATE_START,
89
WLAN_CMD_DEAUTHEN_START,
91
WLAN_AUTHENTICATE_WAIT,
93
WLAN_DISASSOCIATE_WAIT,
94
WLAN_CMD_TX_PSPACKET_START,
96
WLAN_CMD_CHANGE_BBSENSITIVITY_START,
97
WLAN_CMD_SETPOWER_START,
98
WLAN_CMD_AP_MODE_START,
99
WLAN_CMD_TBTT_WAKEUP_START,
100
WLAN_CMD_BECON_SEND_START,
101
WLAN_CMD_CHANGE_ANTENNA_START,
102
WLAN_CMD_REMOVE_ALLKEY_START,
103
WLAN_CMD_MAC_DISPOWERSAVING_START,
104
WLAN_CMD_11H_CHSW_START,
106
} CMD_STATE, *PCMD_STATE;
108
/*--------------------- Export Classes ----------------------------*/
110
/*--------------------- Export Variables --------------------------*/
112
/*--------------------- Export Types ------------------------------*/
114
/*--------------------- Export Functions --------------------------*/
116
void vResetCommandTimer(void *hDeviceContext);
118
BOOL bScheduleCommand(void *hDeviceContext,
122
void vRunCommand(void *hDeviceContext);
131
void BSSvSecondTxData(void *hDeviceContext);
133
#endif /* __WCMD_H__ */