diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2009-06-01 08:43:21 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2009-06-01 08:43:21 +0000 |
commit | 57ed4c986aa98917472cfac3de2c948e71d2ad60 (patch) | |
tree | 87830142a69469bf14056ebd4b7614df3928c1b9 /sys/dev/usb | |
parent | d8ffa54eb9c233be2026a814004570511f4e7b8a (diff) |
fix endianness issue.
tested by jsg@ on tadpole sparc64 laptop.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_zyd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c index e76ece435d3..93a5680ec21 100644 --- a/sys/dev/usb/if_zyd.c +++ b/sys/dev/usb/if_zyd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_zyd.c,v 1.76 2009/05/31 13:03:21 jsg Exp $ */ +/* $OpenBSD: if_zyd.c,v 1.77 2009/06/01 08:43:20 damien Exp $ */ /*- * Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr> @@ -2189,7 +2189,7 @@ zyd_tx_data(struct zyd_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) pktlen += totlen; desc->pktlen = htole16(pktlen); - desc->plcp_length = (16 * totlen + rate - 1) / rate; + desc->plcp_length = htole16((16 * totlen + rate - 1) / rate); desc->plcp_service = 0; if (rate == 22) { const int remainder = (16 * totlen) % 22; |