diff options
author | hselasky <hselasky@FreeBSD.org> | 2013-07-29 05:54:13 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2013-07-29 05:54:13 +0000 |
commit | 55ae76b4624de36a8036d06f90dc0177ae6677d7 (patch) | |
tree | 5644538263e9d13f3c7b89bdb903e8cd4e1132d0 /sys/dev/usb/wlan/if_uathvar.h | |
parent | a12ce7755b6d0943bbc3c70dc49b08389c63fb13 (diff) | |
download | FreeBSD-src-55ae76b4624de36a8036d06f90dc0177ae6677d7.zip FreeBSD-src-55ae76b4624de36a8036d06f90dc0177ae6677d7.tar.gz |
Fix alignment of USB WLAN radiotap headers. This makes USB WLAN adapters
work on ARM, MIPS and similar platforms, where alignment matters.
MFC after: 1 week
Reported by: XiaoQI Ge <ghw@7axu.com>
Diffstat (limited to 'sys/dev/usb/wlan/if_uathvar.h')
-rw-r--r-- | sys/dev/usb/wlan/if_uathvar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/wlan/if_uathvar.h b/sys/dev/usb/wlan/if_uathvar.h index ed84ba9..fae3604 100644 --- a/sys/dev/usb/wlan/if_uathvar.h +++ b/sys/dev/usb/wlan/if_uathvar.h @@ -52,7 +52,7 @@ struct uath_rx_radiotap_header { int8_t wr_antsignal; int8_t wr_antnoise; u_int8_t wr_antenna; -} __packed; +} __packed __aligned(8); #define UATH_RX_RADIOTAP_PRESENT ( \ (1 << IEEE80211_RADIOTAP_TSFT) | \ @@ -69,7 +69,7 @@ struct uath_tx_radiotap_header { uint8_t wt_flags; uint16_t wt_chan_freq; uint16_t wt_chan_flags; -} __packed; +} __packed __aligned(8); #define UATH_TX_RADIOTAP_PRESENT \ ((1 << IEEE80211_RADIOTAP_FLAGS) | \ |