aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/carl9170/wlan.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/wlan.h')
-rw-r--r--drivers/net/wireless/ath/carl9170/wlan.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/carl9170/wlan.h b/drivers/net/wireless/ath/carl9170/wlan.h
index 48ead2268f50..24d63b583b6b 100644
--- a/drivers/net/wireless/ath/carl9170/wlan.h
+++ b/drivers/net/wireless/ath/carl9170/wlan.h
@@ -74,6 +74,9 @@
74#define AR9170_RX_STATUS_MPDU_MIDDLE 0x30 74#define AR9170_RX_STATUS_MPDU_MIDDLE 0x30
75#define AR9170_RX_STATUS_MPDU_LAST 0x10 75#define AR9170_RX_STATUS_MPDU_LAST 0x10
76 76
77#define AR9170_RX_STATUS_CONT_AGGR 0x40
78#define AR9170_RX_STATUS_TOTAL_ERROR 0x80
79
77#define AR9170_RX_ERROR_RXTO 0x01 80#define AR9170_RX_ERROR_RXTO 0x01
78#define AR9170_RX_ERROR_OVERRUN 0x02 81#define AR9170_RX_ERROR_OVERRUN 0x02
79#define AR9170_RX_ERROR_DECRYPT 0x04 82#define AR9170_RX_ERROR_DECRYPT 0x04
@@ -81,7 +84,6 @@
81#define AR9170_RX_ERROR_WRONG_RA 0x10 84#define AR9170_RX_ERROR_WRONG_RA 0x10
82#define AR9170_RX_ERROR_PLCP 0x20 85#define AR9170_RX_ERROR_PLCP 0x20
83#define AR9170_RX_ERROR_MMIC 0x40 86#define AR9170_RX_ERROR_MMIC 0x40
84#define AR9170_RX_ERROR_FATAL 0x80
85 87
86/* these are either-or */ 88/* these are either-or */
87#define AR9170_TX_MAC_PROT_RTS 0x0001 89#define AR9170_TX_MAC_PROT_RTS 0x0001
@@ -329,13 +331,15 @@ struct _carl9170_tx_superframe {
329 331
330#define CARL9170_TX_SUPERDESC_LEN 24 332#define CARL9170_TX_SUPERDESC_LEN 24
331#define AR9170_TX_HWDESC_LEN 8 333#define AR9170_TX_HWDESC_LEN 8
332#define AR9170_TX_SUPERFRAME_LEN (CARL9170_TX_HWDESC_LEN + \ 334#define CARL9170_TX_SUPERFRAME_LEN (CARL9170_TX_SUPERDESC_LEN + \
333 AR9170_TX_SUPERDESC_LEN) 335 AR9170_TX_HWDESC_LEN)
334 336
335struct ar9170_rx_head { 337struct ar9170_rx_head {
336 u8 plcp[12]; 338 u8 plcp[12];
337} __packed; 339} __packed;
338 340
341#define AR9170_RX_HEAD_LEN 12
342
339struct ar9170_rx_phystatus { 343struct ar9170_rx_phystatus {
340 union { 344 union {
341 struct { 345 struct {
@@ -350,12 +354,16 @@ struct ar9170_rx_phystatus {
350 u8 phy_err; 354 u8 phy_err;
351} __packed; 355} __packed;
352 356
357#define AR9170_RX_PHYSTATUS_LEN 20
358
353struct ar9170_rx_macstatus { 359struct ar9170_rx_macstatus {
354 u8 SAidx, DAidx; 360 u8 SAidx, DAidx;
355 u8 error; 361 u8 error;
356 u8 status; 362 u8 status;
357} __packed; 363} __packed;
358 364
365#define AR9170_RX_MACSTATUS_LEN 4
366
359struct ar9170_rx_frame_single { 367struct ar9170_rx_frame_single {
360 struct ar9170_rx_head phy_head; 368 struct ar9170_rx_head phy_head;
361 struct ieee80211_hdr i3e; 369 struct ieee80211_hdr i3e;