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>
This commit is contained in:
parent
3e506f5f8c
commit
e8353a7a69
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253757
@ -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) | \
|
||||
|
@ -58,7 +58,7 @@ struct run_rx_radiotap_header {
|
||||
int8_t wr_dbm_antsignal;
|
||||
uint8_t wr_antenna;
|
||||
uint8_t wr_antsignal;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define RUN_RX_RADIOTAP_PRESENT \
|
||||
(1 << IEEE80211_RADIOTAP_FLAGS | \
|
||||
@ -75,7 +75,7 @@ struct run_tx_radiotap_header {
|
||||
uint16_t wt_chan_freq;
|
||||
uint16_t wt_chan_flags;
|
||||
uint8_t wt_hwqueue;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define IEEE80211_RADIOTAP_HWQUEUE 15
|
||||
|
||||
|
@ -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) | \
|
||||
|
@ -380,7 +380,7 @@ struct upgt_rx_radiotap_header {
|
||||
uint16_t wr_chan_freq;
|
||||
uint16_t wr_chan_flags;
|
||||
int8_t wr_antsignal;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define UPGT_RX_RADIOTAP_PRESENT \
|
||||
((1 << IEEE80211_RADIOTAP_FLAGS) | \
|
||||
@ -394,7 +394,7 @@ struct upgt_tx_radiotap_header {
|
||||
uint8_t wt_rate;
|
||||
uint16_t wt_chan_freq;
|
||||
uint16_t wt_chan_flags;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define UPGT_TX_RADIOTAP_PRESENT \
|
||||
((1 << IEEE80211_RADIOTAP_FLAGS) | \
|
||||
|
@ -34,7 +34,7 @@ struct ural_rx_radiotap_header {
|
||||
int8_t wr_antsignal;
|
||||
int8_t wr_antnoise;
|
||||
uint8_t wr_antenna;
|
||||
};
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define RAL_RX_RADIOTAP_PRESENT \
|
||||
((1 << IEEE80211_RADIOTAP_FLAGS) | \
|
||||
@ -51,7 +51,7 @@ struct ural_tx_radiotap_header {
|
||||
uint16_t wt_chan_freq;
|
||||
uint16_t wt_chan_flags;
|
||||
uint8_t wt_antenna;
|
||||
};
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define RAL_TX_RADIOTAP_PRESENT \
|
||||
((1 << IEEE80211_RADIOTAP_FLAGS) | \
|
||||
|
@ -1030,7 +1030,7 @@ struct urtwn_rx_radiotap_header {
|
||||
uint16_t wr_chan_freq;
|
||||
uint16_t wr_chan_flags;
|
||||
uint8_t wr_dbm_antsignal;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define URTWN_RX_RADIOTAP_PRESENT \
|
||||
(1 << IEEE80211_RADIOTAP_FLAGS | \
|
||||
@ -1043,7 +1043,7 @@ struct urtwn_tx_radiotap_header {
|
||||
uint8_t wt_flags;
|
||||
uint16_t wt_chan_freq;
|
||||
uint16_t wt_chan_flags;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define URTWN_TX_RADIOTAP_PRESENT \
|
||||
(1 << IEEE80211_RADIOTAP_FLAGS | \
|
||||
|
@ -63,7 +63,7 @@ struct urtw_rx_radiotap_header {
|
||||
uint16_t wr_chan_freq;
|
||||
uint16_t wr_chan_flags;
|
||||
int8_t wr_dbm_antsignal;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define URTW_RX_RADIOTAP_PRESENT \
|
||||
((1 << IEEE80211_RADIOTAP_FLAGS) | \
|
||||
@ -75,7 +75,7 @@ struct urtw_tx_radiotap_header {
|
||||
uint8_t wt_flags;
|
||||
uint16_t wt_chan_freq;
|
||||
uint16_t wt_chan_flags;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define URTW_TX_RADIOTAP_PRESENT \
|
||||
((1 << IEEE80211_RADIOTAP_FLAGS) | \
|
||||
|
@ -1185,7 +1185,7 @@ struct zyd_rx_radiotap_header {
|
||||
uint16_t wr_chan_flags;
|
||||
int8_t wr_antsignal;
|
||||
int8_t wr_antnoise;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define ZYD_RX_RADIOTAP_PRESENT \
|
||||
((1 << IEEE80211_RADIOTAP_FLAGS) | \
|
||||
@ -1200,7 +1200,7 @@ struct zyd_tx_radiotap_header {
|
||||
uint8_t wt_rate;
|
||||
uint16_t wt_chan_freq;
|
||||
uint16_t wt_chan_flags;
|
||||
} __packed;
|
||||
} __packed __aligned(8);
|
||||
|
||||
#define ZYD_TX_RADIOTAP_PRESENT \
|
||||
((1 << IEEE80211_RADIOTAP_FLAGS) | \
|
||||
|
Loading…
Reference in New Issue
Block a user