diff options
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/carl9170.h')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/carl9170.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/carl9170/carl9170.h b/drivers/net/wireless/ath/carl9170/carl9170.h index 2df17f1e49ef..25599741cd8a 100644 --- a/drivers/net/wireless/ath/carl9170/carl9170.h +++ b/drivers/net/wireless/ath/carl9170/carl9170.h | |||
@@ -85,20 +85,14 @@ enum carl9170_device_state { | |||
85 | CARL9170_STARTED, | 85 | CARL9170_STARTED, |
86 | }; | 86 | }; |
87 | 87 | ||
88 | #define CARL9170_NUM_TID 16 | ||
89 | #define WME_BA_BMP_SIZE 64 | 88 | #define WME_BA_BMP_SIZE 64 |
90 | #define CARL9170_TX_USER_RATE_TRIES 3 | 89 | #define CARL9170_TX_USER_RATE_TRIES 3 |
91 | 90 | ||
92 | #define WME_AC_BE 2 | ||
93 | #define WME_AC_BK 3 | ||
94 | #define WME_AC_VI 1 | ||
95 | #define WME_AC_VO 0 | ||
96 | |||
97 | #define TID_TO_WME_AC(_tid) \ | 91 | #define TID_TO_WME_AC(_tid) \ |
98 | ((((_tid) == 0) || ((_tid) == 3)) ? WME_AC_BE : \ | 92 | ((((_tid) == 0) || ((_tid) == 3)) ? IEEE80211_AC_BE : \ |
99 | (((_tid) == 1) || ((_tid) == 2)) ? WME_AC_BK : \ | 93 | (((_tid) == 1) || ((_tid) == 2)) ? IEEE80211_AC_BK : \ |
100 | (((_tid) == 4) || ((_tid) == 5)) ? WME_AC_VI : \ | 94 | (((_tid) == 4) || ((_tid) == 5)) ? IEEE80211_AC_VI : \ |
101 | WME_AC_VO) | 95 | IEEE80211_AC_VO) |
102 | 96 | ||
103 | #define SEQ_DIFF(_start, _seq) \ | 97 | #define SEQ_DIFF(_start, _seq) \ |
104 | (((_start) - (_seq)) & 0x0fff) | 98 | (((_start) - (_seq)) & 0x0fff) |
@@ -290,6 +284,7 @@ struct ar9170 { | |||
290 | unsigned int rx_size; | 284 | unsigned int rx_size; |
291 | unsigned int tx_seq_table; | 285 | unsigned int tx_seq_table; |
292 | bool ba_filter; | 286 | bool ba_filter; |
287 | bool disable_offload_fw; | ||
293 | } fw; | 288 | } fw; |
294 | 289 | ||
295 | /* interface configuration combinations */ | 290 | /* interface configuration combinations */ |
@@ -493,8 +488,8 @@ struct carl9170_sta_info { | |||
493 | bool sleeping; | 488 | bool sleeping; |
494 | atomic_t pending_frames; | 489 | atomic_t pending_frames; |
495 | unsigned int ampdu_max_len; | 490 | unsigned int ampdu_max_len; |
496 | struct carl9170_sta_tid __rcu *agg[CARL9170_NUM_TID]; | 491 | struct carl9170_sta_tid __rcu *agg[IEEE80211_NUM_TIDS]; |
497 | struct carl9170_ba_stats stats[CARL9170_NUM_TID]; | 492 | struct carl9170_ba_stats stats[IEEE80211_NUM_TIDS]; |
498 | }; | 493 | }; |
499 | 494 | ||
500 | struct carl9170_tx_info { | 495 | struct carl9170_tx_info { |