1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #ifndef __WCMD_H__
17 #define __WCMD_H__
18
19 #include "device.h"
20
21
22 enum vnt_cmd {
23 WLAN_CMD_INIT_MAC80211,
24 WLAN_CMD_SETPOWER,
25 WLAN_CMD_TBTT_WAKEUP,
26 WLAN_CMD_BECON_SEND,
27 WLAN_CMD_CHANGE_ANTENNA
28 };
29
30 #define CMD_Q_SIZE 32
31
32
33 enum vnt_cmd_state {
34 WLAN_CMD_INIT_MAC80211_START,
35 WLAN_CMD_SETPOWER_START,
36 WLAN_CMD_TBTT_WAKEUP_START,
37 WLAN_CMD_BECON_SEND_START,
38 WLAN_CMD_CHANGE_ANTENNA_START,
39 WLAN_CMD_IDLE
40 };
41
42 struct vnt_private;
43
44 void vnt_reset_command_timer(struct vnt_private *priv);
45
46 int vnt_schedule_command(struct vnt_private *priv, enum vnt_cmd);
47
48 void vnt_run_command(struct work_struct *work);
49
50 #endif