1 /* 2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. 3 * All rights reserved. 4 * 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. 9 * 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. 14 * 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. 18 * 19 * File: wcmd.h 20 * 21 * Purpose: Handles the management command interface functions 22 * 23 * Author: Lyndon Chen 24 * 25 * Date: May 8, 2002 26 * 27 */ 28 29 #ifndef __WCMD_H__ 30 #define __WCMD_H__ 31 32 #include "device.h" 33 34 /* Command code */ 35 enum vnt_cmd { 36 WLAN_CMD_INIT_MAC80211, 37 WLAN_CMD_SETPOWER, 38 WLAN_CMD_TBTT_WAKEUP, 39 WLAN_CMD_BECON_SEND, 40 WLAN_CMD_CHANGE_ANTENNA 41 }; 42 43 #define CMD_Q_SIZE 32 44 45 /* Command state */ 46 enum vnt_cmd_state { 47 WLAN_CMD_INIT_MAC80211_START, 48 WLAN_CMD_SETPOWER_START, 49 WLAN_CMD_TBTT_WAKEUP_START, 50 WLAN_CMD_BECON_SEND_START, 51 WLAN_CMD_CHANGE_ANTENNA_START, 52 WLAN_CMD_IDLE 53 }; 54 55 struct vnt_private; 56 57 void vnt_reset_command_timer(struct vnt_private *); 58 59 int vnt_schedule_command(struct vnt_private *, enum vnt_cmd); 60 61 void vnt_run_command(struct work_struct *work); 62 63 #endif /* __WCMD_H__ */ 64