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 -------------------------*/
38 #define AUTHENTICATE_TIMEOUT 1000 //ms
39 #define ASSOCIATE_TIMEOUT 1000 //ms
42 typedef enum tagCMD_CODE {
45 WLAN_CMD_DISASSOCIATE,
49 WLAN_CMD_CHANGE_BBSENSITIVITY,
53 WLAN_CMD_CHANGE_ANTENNA,
54 WLAN_CMD_REMOVE_ALLKEY,
55 WLAN_CMD_MAC_DISPOWERSAVING,
58 } CMD_CODE, *PCMD_CODE;
62 typedef enum tagCMD_STATUS {
63 CMD_STATUS_SUCCESS = 0,
68 } CMD_STATUS, *PCMD_STATUS;
70 typedef struct tagCMD_ITEM {
72 unsigned char abyCmdDesireSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
74 unsigned short wDeAuthenReason;
77 } CMD_ITEM, *PCMD_ITEM;
80 typedef enum tagCMD_STATE {
83 WLAN_CMD_DISASSOCIATE_START,
85 WLAN_AUTHENTICATE_WAIT,
87 WLAN_DISASSOCIATE_WAIT,
88 WLAN_CMD_TX_PSPACKET_START,
89 WLAN_CMD_AP_MODE_START,
91 WLAN_CMD_CHECK_BBSENSITIVITY_CHANGE,
93 } CMD_STATE, *PCMD_STATE;
95 /*--------------------- Export Classes ----------------------------*/
97 /*--------------------- Export Variables --------------------------*/
99 /*--------------------- Export Types ------------------------------*/
101 /*--------------------- Export Functions --------------------------*/
112 bool bClearBSSID_SCAN(
118 void *hDeviceContext,
120 unsigned char *pbyItem0
125 void *hDeviceContext,