carl9170 firmware: upgrade API struct layout checks
[carl9170fw.git] / include / shared / wlan.h
index 48ead2268f505308eb623f081eeb2c320ae04a48..ce8885ba6cc9ef493b7dc200d45f2124630c1234 100644 (file)
@@ -329,13 +329,15 @@ struct _carl9170_tx_superframe {
 
 #define        CARL9170_TX_SUPERDESC_LEN               24
 #define        AR9170_TX_HWDESC_LEN                    8
-#define        AR9170_TX_SUPERFRAME_LEN                (CARL9170_TX_HWDESC_LEN + \
-                                                AR9170_TX_SUPERDESC_LEN)
+#define        CARL9170_TX_SUPERFRAME_LEN              (CARL9170_TX_SUPERDESC_LEN + \
+                                                AR9170_TX_HWDESC_LEN)
 
 struct ar9170_rx_head {
        u8 plcp[12];
 } __packed;
 
+#define AR9170_RX_HEAD_LEN                     12
+
 struct ar9170_rx_phystatus {
        union {
                struct {
@@ -350,12 +352,16 @@ struct ar9170_rx_phystatus {
        u8 phy_err;
 } __packed;
 
+#define AR9170_RX_PHYSTATUS_LEN                        20
+
 struct ar9170_rx_macstatus {
        u8 SAidx, DAidx;
        u8 error;
        u8 status;
 } __packed;
 
+#define AR9170_RX_MACSTATUS_LEN                        4
+
 struct ar9170_rx_frame_single {
        struct ar9170_rx_head phy_head;
        struct ieee80211_hdr i3e;