X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=carl9170fw%2Finclude%2Fshared%2Fwlan.h;fp=carl9170fw%2Finclude%2Fshared%2Fwlan.h;h=78b0ee42a4175fb0ccaf23668e904ca55f0a5f47;hp=117f005f20b931a34c2201b5921e23bcc80de026;hb=e59761df994853121b5287a5bf7cef7911f0f146;hpb=b51695c17b7a86ca904192fb7e7d337fa36f4d56 diff --git a/carl9170fw/include/shared/wlan.h b/carl9170fw/include/shared/wlan.h index 117f005..78b0ee4 100644 --- a/carl9170fw/include/shared/wlan.h +++ b/carl9170fw/include/shared/wlan.h @@ -270,7 +270,7 @@ struct ar9170_tx_frame { struct ar9170_tx_hwdesc hdr; union { - struct ieee80211_hdr i3e; + struct ieee80211_hdr i3e __packed __aligned(2); u8 payload[0]; } data; } __packed __aligned(4); @@ -327,7 +327,7 @@ struct _carl9170_tx_superdesc { struct _carl9170_tx_superframe { struct _carl9170_tx_superdesc s; struct _ar9170_tx_hwdesc f; - u8 frame_data[0]; + u8 frame_data[]; } __packed __aligned(4); #define CARL9170_TX_SUPERDESC_LEN 24 @@ -367,24 +367,24 @@ struct ar9170_rx_macstatus { struct ar9170_rx_frame_single { struct ar9170_rx_head phy_head; - struct ieee80211_hdr i3e; + struct ieee80211_hdr i3e __packed __aligned(2); struct ar9170_rx_phystatus phy_tail; struct ar9170_rx_macstatus macstatus; -} __packed __aligned(4); +}; struct ar9170_rx_frame_head { struct ar9170_rx_head phy_head; - struct ieee80211_hdr i3e; + struct ieee80211_hdr i3e __packed __aligned(2); struct ar9170_rx_macstatus macstatus; -} __packed __aligned(4); +}; struct ar9170_rx_frame_middle { - struct ieee80211_hdr i3e; + struct ieee80211_hdr i3e __packed __aligned(2); struct ar9170_rx_macstatus macstatus; -} __packed __aligned(4); +}; struct ar9170_rx_frame_tail { - struct ieee80211_hdr i3e; + struct ieee80211_hdr i3e __packed __aligned(2); struct ar9170_rx_phystatus phy_tail; struct ar9170_rx_macstatus macstatus; } __packed __aligned(4); @@ -395,8 +395,8 @@ struct ar9170_rx_frame { struct ar9170_rx_frame_head head; struct ar9170_rx_frame_middle middle; struct ar9170_rx_frame_tail tail; - } __packed __aligned(4); -} __packed __aligned(4); + }; +}; static inline u8 ar9170_get_decrypt_type(struct ar9170_rx_macstatus *t) {