-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcmd.h
64 lines (54 loc) · 1.57 KB
/
cmd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef _ACX_CMD_H_
#define _ACX_CMD_H_
#include "acx.h"
#include "ie.h"
enum acx_cmd {
ACX1xx_CMD_RESET,
ACX1xx_CMD_INTERROGATE,
ACX1xx_CMD_CONFIGURE,
ACX1xx_CMD_ENABLE_RX,
ACX1xx_CMD_ENABLE_TX,
ACX1xx_CMD_DISABLE_RX,
ACX1xx_CMD_DISABLE_TX,
ACX1xx_CMD_FLUSH_QUEUE,
ACX1xx_CMD_SCAN,
ACX1xx_CMD_STOP_SCAN,
ACX1xx_CMD_CONFIG_TIM,
ACX1xx_CMD_JOIN,
ACX1xx_CMD_WEP_MGMT,
ACX100_CMD_HALT,
ACX1xx_CMD_MEM_READ,
ACX1xx_CMD_MEM_WRITE,
ACX1xx_CMD_SLEEP,
ACX1xx_CMD_WAKE,
ACX1xx_CMD_UNKNOWN_11,
ACX100_CMD_INIT_MEMORY,
ACX1FF_CMD_DISABLE_RADIO,
ACX1xx_CMD_CONFIG_BEACON,
ACX1xx_CMD_CONFIG_PROBE_RESPONSE,
ACX1xx_CMD_CONFIG_NULL_DATA,
ACX1xx_CMD_CONFIG_PROBE_REQUEST,
ACX1xx_CMD_FCC_TEST,
ACX1xx_CMD_RADIOINIT,
ACX111_CMD_RADIOCALIB,
ACX1FF_CMD_NOISE_HISTOGRAM,
ACX1FF_CMD_RX_RESET,
ACX1FF_CMD_LNA_CONTROL,
ACX1FF_CMD_CONTROL_DBG_TRACE
};
struct acx_cmd_desc {
unsigned int val;
const char* name;
};
extern const struct acx_cmd_desc acx_cmd_descs[];
const char *acx_cmd_status_str(unsigned int state);
int acx_issue_cmd(acx_device_t *adev, enum acx_cmd cmd, void *param,
unsigned len);
int acx_issue_cmd_timeout(acx_device_t *adev, enum acx_cmd cmd, void *buffer,
unsigned buflen, unsigned cmd_timeout);
int acx_configure(acx_device_t *adev, void *pdr, enum acx_ie type);
int acx_configure_len(acx_device_t *adev, void *pdr, enum acx_ie type, u16 len);
int acx_interrogate(acx_device_t *adev, void *pdr, enum acx_ie type);
int acx_cmd_join_bssid(acx_device_t *adev, const u8 *bssid);
int acx_cmd_scan(acx_device_t *adev);
#endif