Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
0004  * All rights reserved.
0005  *
0006  * Purpose: Handles the management command interface functions
0007  *
0008  * Author: Lyndon Chen
0009  *
0010  * Date: May 8, 2002
0011  *
0012  */
0013 
0014 #ifndef __WCMD_H__
0015 #define __WCMD_H__
0016 
0017 #include "device.h"
0018 
0019 /* Command code */
0020 enum vnt_cmd {
0021     WLAN_CMD_INIT_MAC80211,
0022     WLAN_CMD_SETPOWER,
0023     WLAN_CMD_TBTT_WAKEUP,
0024     WLAN_CMD_BECON_SEND,
0025     WLAN_CMD_CHANGE_ANTENNA
0026 };
0027 
0028 #define CMD_Q_SIZE              32
0029 
0030 /* Command state */
0031 enum vnt_cmd_state {
0032     WLAN_CMD_INIT_MAC80211_START,
0033     WLAN_CMD_SETPOWER_START,
0034     WLAN_CMD_TBTT_WAKEUP_START,
0035     WLAN_CMD_BECON_SEND_START,
0036     WLAN_CMD_CHANGE_ANTENNA_START,
0037     WLAN_CMD_IDLE
0038 };
0039 
0040 struct vnt_private;
0041 
0042 void vnt_reset_command_timer(struct vnt_private *priv);
0043 
0044 int vnt_schedule_command(struct vnt_private *priv, enum vnt_cmd);
0045 
0046 void vnt_run_command(struct work_struct *work);
0047 
0048 #endif /* __WCMD_H__ */