diff options
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/ar9170.h')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/ar9170.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ar9170/ar9170.h b/drivers/net/wireless/ath/ar9170/ar9170.h index 914e4718a9a8..dc662b76a1c8 100644 --- a/drivers/net/wireless/ath/ar9170/ar9170.h +++ b/drivers/net/wireless/ath/ar9170/ar9170.h | |||
@@ -109,7 +109,6 @@ struct ar9170_rxstream_mpdu_merge { | |||
109 | bool has_plcp; | 109 | bool has_plcp; |
110 | }; | 110 | }; |
111 | 111 | ||
112 | #define AR9170_NUM_MAX_BA_RETRY 5 | ||
113 | #define AR9170_NUM_TID 16 | 112 | #define AR9170_NUM_TID 16 |
114 | #define WME_BA_BMP_SIZE 64 | 113 | #define WME_BA_BMP_SIZE 64 |
115 | #define AR9170_NUM_MAX_AGG_LEN (2 * WME_BA_BMP_SIZE) | 114 | #define AR9170_NUM_MAX_AGG_LEN (2 * WME_BA_BMP_SIZE) |
@@ -143,7 +142,12 @@ struct ar9170_sta_tid { | |||
143 | u16 tid; | 142 | u16 tid; |
144 | enum ar9170_tid_state state; | 143 | enum ar9170_tid_state state; |
145 | bool active; | 144 | bool active; |
146 | u8 retry; | 145 | }; |
146 | |||
147 | struct ar9170_tx_queue_stats { | ||
148 | unsigned int len; | ||
149 | unsigned int limit; | ||
150 | unsigned int count; | ||
147 | }; | 151 | }; |
148 | 152 | ||
149 | #define AR9170_QUEUE_TIMEOUT 64 | 153 | #define AR9170_QUEUE_TIMEOUT 64 |
@@ -154,12 +158,15 @@ struct ar9170_sta_tid { | |||
154 | 158 | ||
155 | #define AR9170_NUM_TX_STATUS 128 | 159 | #define AR9170_NUM_TX_STATUS 128 |
156 | #define AR9170_NUM_TX_AGG_MAX 30 | 160 | #define AR9170_NUM_TX_AGG_MAX 30 |
161 | #define AR9170_NUM_TX_LIMIT_HARD AR9170_TXQ_DEPTH | ||
162 | #define AR9170_NUM_TX_LIMIT_SOFT (AR9170_TXQ_DEPTH - 10) | ||
157 | 163 | ||
158 | struct ar9170 { | 164 | struct ar9170 { |
159 | struct ieee80211_hw *hw; | 165 | struct ieee80211_hw *hw; |
160 | struct ath_common common; | 166 | struct ath_common common; |
161 | struct mutex mutex; | 167 | struct mutex mutex; |
162 | enum ar9170_device_state state; | 168 | enum ar9170_device_state state; |
169 | bool registered; | ||
163 | unsigned long bad_hw_nagger; | 170 | unsigned long bad_hw_nagger; |
164 | 171 | ||
165 | int (*open)(struct ar9170 *); | 172 | int (*open)(struct ar9170 *); |
@@ -172,8 +179,6 @@ struct ar9170 { | |||
172 | 179 | ||
173 | /* interface mode settings */ | 180 | /* interface mode settings */ |
174 | struct ieee80211_vif *vif; | 181 | struct ieee80211_vif *vif; |
175 | u8 mac_addr[ETH_ALEN]; | ||
176 | u8 bssid[ETH_ALEN]; | ||
177 | 182 | ||
178 | /* beaconing */ | 183 | /* beaconing */ |
179 | struct sk_buff *beacon; | 184 | struct sk_buff *beacon; |
@@ -204,6 +209,8 @@ struct ar9170 { | |||
204 | u8 power_2G_ht20[8]; | 209 | u8 power_2G_ht20[8]; |
205 | u8 power_2G_ht40[8]; | 210 | u8 power_2G_ht40[8]; |
206 | 211 | ||
212 | u8 phy_heavy_clip; | ||
213 | |||
207 | #ifdef CONFIG_AR9170_LEDS | 214 | #ifdef CONFIG_AR9170_LEDS |
208 | struct delayed_work led_work; | 215 | struct delayed_work led_work; |
209 | struct ar9170_led leds[AR9170_NUM_LEDS]; | 216 | struct ar9170_led leds[AR9170_NUM_LEDS]; |
@@ -211,7 +218,7 @@ struct ar9170 { | |||
211 | 218 | ||
212 | /* qos queue settings */ | 219 | /* qos queue settings */ |
213 | spinlock_t tx_stats_lock; | 220 | spinlock_t tx_stats_lock; |
214 | struct ieee80211_tx_queue_stats tx_stats[5]; | 221 | struct ar9170_tx_queue_stats tx_stats[5]; |
215 | struct ieee80211_tx_queue_params edcf[5]; | 222 | struct ieee80211_tx_queue_params edcf[5]; |
216 | 223 | ||
217 | spinlock_t cmdlock; | 224 | spinlock_t cmdlock; |
@@ -231,7 +238,7 @@ struct ar9170 { | |||
231 | struct sk_buff_head tx_status_ampdu; | 238 | struct sk_buff_head tx_status_ampdu; |
232 | spinlock_t tx_ampdu_list_lock; | 239 | spinlock_t tx_ampdu_list_lock; |
233 | struct list_head tx_ampdu_list; | 240 | struct list_head tx_ampdu_list; |
234 | unsigned int tx_ampdu_pending; | 241 | atomic_t tx_ampdu_pending; |
235 | 242 | ||
236 | /* rxstream mpdu merge */ | 243 | /* rxstream mpdu merge */ |
237 | struct ar9170_rxstream_mpdu_merge rx_mpdu; | 244 | struct ar9170_rxstream_mpdu_merge rx_mpdu; |
@@ -248,13 +255,8 @@ struct ar9170_sta_info { | |||
248 | unsigned int ampdu_max_len; | 255 | unsigned int ampdu_max_len; |
249 | }; | 256 | }; |
250 | 257 | ||
251 | #define AR9170_TX_FLAG_WAIT_FOR_ACK BIT(0) | ||
252 | #define AR9170_TX_FLAG_NO_ACK BIT(1) | ||
253 | #define AR9170_TX_FLAG_BLOCK_ACK BIT(2) | ||
254 | |||
255 | struct ar9170_tx_info { | 258 | struct ar9170_tx_info { |
256 | unsigned long timeout; | 259 | unsigned long timeout; |
257 | unsigned int flags; | ||
258 | }; | 260 | }; |
259 | 261 | ||
260 | #define IS_STARTED(a) (((struct ar9170 *)a)->state >= AR9170_STARTED) | 262 | #define IS_STARTED(a) (((struct ar9170 *)a)->state >= AR9170_STARTED) |