summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-06-08 21:15:40 +0000
committersam <sam@FreeBSD.org>2009-06-08 21:15:40 +0000
commit62ee07ea6b881d2cf86f2ae761cf3c7b8ee0dde5 (patch)
tree30a7fa063916943fe6c6cb064d4532eb6273e0b5 /sys/net80211
parent379f869a44b050d85bedc963f49d7ff9eb63db67 (diff)
downloadFreeBSD-src-62ee07ea6b881d2cf86f2ae761cf3c7b8ee0dde5.zip
FreeBSD-src-62ee07ea6b881d2cf86f2ae761cf3c7b8ee0dde5.tar.gz
fix big-endian machines
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_radiotap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net80211/ieee80211_radiotap.c b/sys/net80211/ieee80211_radiotap.c
index b39a071..8c69684 100644
--- a/sys/net80211/ieee80211_radiotap.c
+++ b/sys/net80211/ieee80211_radiotap.c
@@ -153,17 +153,17 @@ ieee80211_radiotap_chan_change(struct ieee80211com *ic)
if (ic->ic_rxchan != NULL) {
struct ieee80211_radiotap_header *rh = ic->ic_rh;
- if (rh->it_present & (1<<IEEE80211_RADIOTAP_XCHANNEL))
+ if (rh->it_present & htole32(1<<IEEE80211_RADIOTAP_XCHANNEL))
set_xchannel(ic->ic_rxchan, ic->ic_curchan);
- else if (rh->it_present & (1<<IEEE80211_RADIOTAP_CHANNEL))
+ else if (rh->it_present & htole32(1<<IEEE80211_RADIOTAP_CHANNEL))
set_channel(ic->ic_rxchan, ic->ic_curchan);
}
if (ic->ic_txchan != NULL) {
struct ieee80211_radiotap_header *th = ic->ic_th;
- if (th->it_present & (1<<IEEE80211_RADIOTAP_XCHANNEL))
+ if (th->it_present & htole32(1<<IEEE80211_RADIOTAP_XCHANNEL))
set_xchannel(ic->ic_txchan, ic->ic_curchan);
- else if (th->it_present & (1<<IEEE80211_RADIOTAP_CHANNEL))
+ else if (th->it_present & htole32(1<<IEEE80211_RADIOTAP_CHANNEL))
set_channel(ic->ic_txchan, ic->ic_curchan);
}
}
OpenPOWER on IntegriCloud