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
25extern __printf(2, 3)
26int ath6kl_printk(const char *level, const char *fmt, ...);
27
28
29
30
31
32
33
34#define ATH6KL_ABI_VERSION 1
35
36#define SIGNAL_QUALITY_METRICS_NUM_MAX 2
37
38enum {
39 SIGNAL_QUALITY_METRICS_SNR = 0,
40 SIGNAL_QUALITY_METRICS_RSSI,
41 SIGNAL_QUALITY_METRICS_ALL,
42};
43
44
45
46
47
48#define WMI_MAX_TX_DATA_FRAME_LENGTH \
49 (1500 + sizeof(struct wmi_data_hdr) + \
50 sizeof(struct ethhdr) + \
51 sizeof(struct ath6kl_llc_snap_hdr))
52
53
54#define WMI_MAX_AMSDU_RX_DATA_FRAME_LENGTH \
55 (3840 + sizeof(struct wmi_data_hdr) + \
56 sizeof(struct ethhdr) + \
57 sizeof(struct ath6kl_llc_snap_hdr))
58
59#define EPPING_ALIGNMENT_PAD \
60 (((sizeof(struct htc_frame_hdr) + 3) & (~0x3)) \
61 - sizeof(struct htc_frame_hdr))
62
63struct ath6kl_llc_snap_hdr {
64 u8 dsap;
65 u8 ssap;
66 u8 cntl;
67 u8 org_code[3];
68 __be16 eth_type;
69} __packed;
70
71enum crypto_type {
72 NONE_CRYPT = 0x01,
73 WEP_CRYPT = 0x02,
74 TKIP_CRYPT = 0x04,
75 AES_CRYPT = 0x08,
76 WAPI_CRYPT = 0x10,
77};
78
79struct htc_endpoint_credit_dist;
80struct ath6kl;
81struct ath6kl_htcap;
82enum htc_credit_dist_reason;
83struct ath6kl_htc_credit_info;
84
85struct sk_buff *ath6kl_buf_alloc(int size);
86#endif
87