summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan/if_rumvar.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2013-07-29 05:54:13 +0000
committerhselasky <hselasky@FreeBSD.org>2013-07-29 05:54:13 +0000
commit55ae76b4624de36a8036d06f90dc0177ae6677d7 (patch)
tree5644538263e9d13f3c7b89bdb903e8cd4e1132d0 /sys/dev/usb/wlan/if_rumvar.h
parenta12ce7755b6d0943bbc3c70dc49b08389c63fb13 (diff)
downloadFreeBSD-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_rumvar.h')
-rw-r--r--sys/dev/usb/wlan/if_rumvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/wlan/if_rumvar.h b/sys/dev/usb/wlan/if_rumvar.h
index bc74e57..17944aa 100644
--- a/sys/dev/usb/wlan/if_rumvar.h
+++ b/sys/dev/usb/wlan/if_rumvar.h
@@ -29,7 +29,7 @@ struct rum_rx_radiotap_header {
int8_t wr_antsignal;
int8_t wr_antnoise;
uint8_t wr_antenna;
-};
+} __packed __aligned(8);
#define RT2573_RX_RADIOTAP_PRESENT \
((1 << IEEE80211_RADIOTAP_FLAGS) | \
@@ -47,7 +47,7 @@ struct rum_tx_radiotap_header {
uint16_t wt_chan_freq;
uint16_t wt_chan_flags;
uint8_t wt_antenna;
-};
+} __packed __aligned(8);
#define RT2573_TX_RADIOTAP_PRESENT \
((1 << IEEE80211_RADIOTAP_FLAGS) | \
OpenPOWER on IntegriCloud