summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ath.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2012-10-17 00:59:58 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2012-10-17 00:59:58 +0000
commit5ae0c9e10f51a65b1f7d643e3670c45fa0d81813 (patch)
tree72237d19648e80acc8b2552d37ebd3c707617d3a /sys/dev/ic/ath.c
parent415e0a677070263cb84c25fdfc918fad19da4d62 (diff)
AH_BYTE_ORDER and AH_BIG_ENDIAN are holdovers from the old FreeBSD
code, we test but don't define them. Replace with _BYTE_ORDER and _BIG_ENDIAN to make the iv show up properly for big endian bpf consumers. ok stsp@ reyk@
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r--sys/dev/ic/ath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index 0884447fb55..e1af2a51404 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.95 2012/01/29 12:33:36 stsp Exp $ */
+/* $OpenBSD: ath.c,v 1.96 2012/10/17 00:59:57 jsg Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -2138,7 +2138,7 @@ ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni,
* NB: Preserve byte order of IV for packet
* sniffers; it doesn't matter otherwise.
*/
-#if AH_BYTE_ORDER == AH_BIG_ENDIAN
+#if _BYTE_ORDER == _BIG_ENDIAN
ivp[0] = iv >> 0;
ivp[1] = iv >> 8;
ivp[2] = iv >> 16;