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