0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef __WCMD_H__
0015 #define __WCMD_H__
0016
0017 #include "device.h"
0018
0019
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
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