summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-02-22 10:41:26 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-02-22 10:41:26 +0000
commitf30523dc65059382fc307c29f85e6836ba6cadce (patch)
tree12d55d23c38963771f98f454446a670d9c18c544
parent5e986e89d5b2cda04e893a0f7105e496d1b195e2 (diff)
make ral compile on macppc.
fix endianness issues. pointed out by "barryg" (Barry Dexter A. Gonzaga).
-rw-r--r--sys/dev/ic/ral.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c
index 3552e308ab6..103ba71b0b4 100644
--- a/sys/dev/ic/ral.c
+++ b/sys/dev/ic/ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ral.c,v 1.12 2005/02/19 12:11:18 damien Exp $ */
+/* $OpenBSD: ral.c,v 1.13 2005/02/22 10:41:25 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -36,6 +36,7 @@
#include <sys/malloc.h>
#include <sys/timeout.h>
#include <sys/conf.h>
+#include <sys/device.h>
#include <machine/bus.h>
#include <machine/endian.h>
@@ -1433,7 +1434,7 @@ ral_tx_bcn(struct ral_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
desc->flags = htole32(RAL_TX_VALID | RAL_TX_BUSY |
RAL_TX_INSERT_TIMESTAMP | RAL_TX_IFS_NEW_BACKOFF);
- desc->flags |= htole32(m0->m_pkthdr.len) << 16;
+ desc->flags |= htole32(m0->m_pkthdr.len << 16);
desc->wme = htole32(
8 << RAL_WME_CWMAX_BITS_SHIFT |
@@ -1499,7 +1500,7 @@ ral_tx_mgt(struct ral_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
desc->physaddr = htole32(data->map->dm_segs->ds_addr);
desc->flags = htole32(RAL_TX_VALID | RAL_TX_BUSY);
- desc->flags |= htole32(m0->m_pkthdr.len) << 16;
+ desc->flags |= htole32(m0->m_pkthdr.len << 16);
if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
desc->flags |= htole32(RAL_TX_NEED_ACK);
@@ -1674,7 +1675,7 @@ ral_tx_data(struct ral_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
desc->physaddr = htole32(data->map->dm_segs->ds_addr);
desc->flags = htole32(RAL_TX_CIPHER_BUSY);
- desc->flags |= htole32(m0->m_pkthdr.len) << 16;
+ desc->flags |= htole32(m0->m_pkthdr.len << 16);
if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
desc->flags |= htole32(RAL_TX_NEED_ACK);