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
32 #if !defined(__TTYPE_H__)
35 #if !defined(__80211HDR_H__)
38 #if !defined(__80211MGR_H__)
42 /*--------------------- Export Definitions -------------------------*/
46 #define AUTHENTICATE_TIMEOUT 1000 //ms
47 #define ASSOCIATE_TIMEOUT 1000 //ms
50 typedef enum tagCMD_CODE
{
53 WLAN_CMD_DISASSOCIATE
,
57 WLAN_CMD_CHANGE_BBSENSITIVITY
,
61 WLAN_CMD_CHANGE_ANTENNA
,
62 WLAN_CMD_REMOVE_ALLKEY
,
63 WLAN_CMD_MAC_DISPOWERSAVING
,
66 } CMD_CODE
, DEF
* PCMD_CODE
;
72 typedef enum tagCMD_STATUS
{
80 } CMD_STATUS
, DEF
* PCMD_STATUS
;
83 typedef struct tagCMD_ITEM
{
85 BYTE abyCmdDesireSSID
[WLAN_IEHDR_LEN
+ WLAN_SSID_MAXLEN
+ 1];
90 } CMD_ITEM
, DEF
* PCMD_ITEM
;
93 typedef enum tagCMD_STATE
{
96 WLAN_CMD_DISASSOCIATE_START
,
98 WLAN_AUTHENTICATE_WAIT
,
100 WLAN_DISASSOCIATE_WAIT
,
101 WLAN_CMD_TX_PSPACKET_START
,
102 WLAN_CMD_AP_MODE_START
,
103 WLAN_CMD_RADIO_START
,
104 WLAN_CMD_CHECK_BBSENSITIVITY_CHANGE
,
106 } CMD_STATE
, DEF
* PCMD_STATE
;
109 /*--------------------- Export Classes ----------------------------*/
111 /*--------------------- Export Variables --------------------------*/
114 /*--------------------- Export Types ------------------------------*/
117 /*--------------------- Export Functions --------------------------*/
121 IN HANDLE hDeviceContext
126 IN HANDLE hDeviceContext
129 BOOL
bClearBSSID_SCAN(
130 IN HANDLE hDeviceContext
135 IN HANDLE hDeviceContext
,
136 IN CMD_CODE eCommand
,
142 IN HANDLE hDeviceContext
,
148 IN HANDLE hDeviceContext