This source file includes following definitions.
- ath_dynack_init
- ath_dynack_node_init
- ath_dynack_node_deinit
- ath_dynack_sample_ack_ts
- ath_dynack_sample_tx_ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #ifndef DYNACK_H
18 #define DYNACK_H
19
20 #define ATH_DYN_BUF 64
21
22 struct ath_hw;
23 struct ath_node;
24
25
26
27
28
29
30
31 struct ath_dyn_rxbuf {
32 u16 h_rb, t_rb;
33 u32 tstamp[ATH_DYN_BUF];
34 };
35
36 struct ts_info {
37 u32 tstamp;
38 u32 dur;
39 };
40
41 struct haddr_pair {
42 u8 h_dest[ETH_ALEN];
43 u8 h_src[ETH_ALEN];
44 };
45
46
47
48
49
50
51
52
53 struct ath_dyn_txbuf {
54 u16 h_rb, t_rb;
55 struct haddr_pair addr[ATH_DYN_BUF];
56 struct ts_info ts[ATH_DYN_BUF];
57 };
58
59
60
61
62
63
64
65
66
67
68
69 struct ath_dynack {
70 bool enabled;
71 int ackto;
72 unsigned long lto;
73
74 struct list_head nodes;
75
76
77 spinlock_t qlock;
78 struct ath_dyn_rxbuf ack_rbf;
79 struct ath_dyn_txbuf st_rbf;
80 };
81
82 #if defined(CONFIG_ATH9K_DYNACK)
83 void ath_dynack_reset(struct ath_hw *ah);
84 void ath_dynack_node_init(struct ath_hw *ah, struct ath_node *an);
85 void ath_dynack_node_deinit(struct ath_hw *ah, struct ath_node *an);
86 void ath_dynack_init(struct ath_hw *ah);
87 void ath_dynack_sample_ack_ts(struct ath_hw *ah, struct sk_buff *skb, u32 ts);
88 void ath_dynack_sample_tx_ts(struct ath_hw *ah, struct sk_buff *skb,
89 struct ath_tx_status *ts,
90 struct ieee80211_sta *sta);
91 #else
92 static inline void ath_dynack_init(struct ath_hw *ah) {}
93 static inline void ath_dynack_node_init(struct ath_hw *ah,
94 struct ath_node *an) {}
95 static inline void ath_dynack_node_deinit(struct ath_hw *ah,
96 struct ath_node *an) {}
97 static inline void ath_dynack_sample_ack_ts(struct ath_hw *ah,
98 struct sk_buff *skb, u32 ts) {}
99 static inline void ath_dynack_sample_tx_ts(struct ath_hw *ah,
100 struct sk_buff *skb,
101 struct ath_tx_status *ts,
102 struct ieee80211_sta *sta) {}
103 #endif
104
105 #endif