data_len = ar9170_get_rx_mpdu_len(desc);
mac_err = ar9170_get_rx_macstatus_error(desc);
-#define AR9170_RX_ERROR_BAD (AR9170_RX_ERROR_FCS | AR9170_RX_ERROR_PLCP | \
- AR9170_RX_ERROR_FATAL)
+#define AR9170_RX_ERROR_BAD (AR9170_RX_ERROR_FCS | AR9170_RX_ERROR_PLCP)
if (unlikely(data_len < (4 + 6 + FCS_LEN) ||
desc->totalLen > CONFIG_CARL9170FW_RX_FRAME_LEN) ||
mac_err & AR9170_RX_ERROR_BAD) {
-
/*
* This frame is too damaged to do anything
* useful with it.
#define AR9170_RX_STATUS_MPDU_MIDDLE 0x30
#define AR9170_RX_STATUS_MPDU_LAST 0x10
+#define AR9170_RX_STATUS_CONT_AGGR 0x40
+#define AR9170_RX_STATUS_TOTAL_ERROR 0x80
+
#define AR9170_RX_ERROR_RXTO 0x01
#define AR9170_RX_ERROR_OVERRUN 0x02
#define AR9170_RX_ERROR_DECRYPT 0x04
#define AR9170_RX_ERROR_WRONG_RA 0x10
#define AR9170_RX_ERROR_PLCP 0x20
#define AR9170_RX_ERROR_MMIC 0x40
-#define AR9170_RX_ERROR_FATAL 0x80
/* these are either-or */
#define AR9170_TX_MAC_PROT_RTS 0x0001
u8 plcp[12];
} __packed;
-#define AR9170_RX_HEAD_LEN 12
+#define AR9170_RX_HEAD_LEN 12
struct ar9170_rx_phystatus {
union {
u8 phy_err;
} __packed;
-#define AR9170_RX_PHYSTATUS_LEN 20
+#define AR9170_RX_PHYSTATUS_LEN 20
struct ar9170_rx_macstatus {
u8 SAidx, DAidx;
u8 status;
} __packed;
-#define AR9170_RX_MACSTATUS_LEN 4
+#define AR9170_RX_MACSTATUS_LEN 4
struct ar9170_rx_frame_single {
struct ar9170_rx_head phy_head;