1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef COMMON_H
19#define COMMON_H
20
21#include <linux/netdevice.h>
22
23#define ATH6KL_MAX_IE 256
24
25__printf(2, 3) void ath6kl_printk(const char *level, const char *fmt, ...);
26
27
28
29
30
31
32
33#define ATH6KL_ABI_VERSION 1
34
35#define SIGNAL_QUALITY_METRICS_NUM_MAX 2
36
37enum {
38 SIGNAL_QUALITY_METRICS_SNR = 0,
39 SIGNAL_QUALITY_METRICS_RSSI,
40 SIGNAL_QUALITY_METRICS_ALL,
41};
42
43
44
45
46
47#define WMI_MAX_TX_DATA_FRAME_LENGTH \
48 (1500 + sizeof(struct wmi_data_hdr) + \
49 sizeof(struct ethhdr) + \
50 sizeof(struct ath6kl_llc_snap_hdr))
51
52
53#define WMI_MAX_AMSDU_RX_DATA_FRAME_LENGTH \
54 (3840 + sizeof(struct wmi_data_hdr) + \
55 sizeof(struct ethhdr) + \
56 sizeof(struct ath6kl_llc_snap_hdr))
57
58#define EPPING_ALIGNMENT_PAD \
59 (((sizeof(struct htc_frame_hdr) + 3) & (~0x3)) \
60 - sizeof(struct htc_frame_hdr))
61
62struct ath6kl_llc_snap_hdr {
63 u8 dsap;
64 u8 ssap;
65 u8 cntl;
66 u8 org_code[3];
67 __be16 eth_type;
68} __packed;
69
70enum ath6kl_crypto_type {
71 NONE_CRYPT = 0x01,
72 WEP_CRYPT = 0x02,
73 TKIP_CRYPT = 0x04,
74 AES_CRYPT = 0x08,
75 WAPI_CRYPT = 0x10,
76};
77
78struct htc_endpoint_credit_dist;
79struct ath6kl;
80struct ath6kl_htcap;
81enum htc_credit_dist_reason;
82struct ath6kl_htc_credit_info;
83
84struct sk_buff *ath6kl_buf_alloc(int size);
85#endif
86