diff options
author | weongyo <weongyo@FreeBSD.org> | 2009-09-04 05:28:09 +0000 |
---|---|---|
committer | weongyo <weongyo@FreeBSD.org> | 2009-09-04 05:28:09 +0000 |
commit | 29700115d84726fa773682f23f29f1dad757d491 (patch) | |
tree | 7e400d85917bad45f125c8ea4c6c59427bc7bf25 | |
parent | b0ecf3a925a65d16f281bd25ab840f9d9fe37981 (diff) | |
download | FreeBSD-src-29700115d84726fa773682f23f29f1dad757d491.zip FreeBSD-src-29700115d84726fa773682f23f29f1dad757d491.tar.gz |
fix a TX issue on big endian machines like powerpc or sparc64. Now
zyd(4) should work on all architectures.
Obtained from: OpenBSD
-rw-r--r-- | sys/dev/usb/wlan/if_zyd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/wlan/if_zyd.c b/sys/dev/usb/wlan/if_zyd.c index 9bdb6ea..493c5fa 100644 --- a/sys/dev/usb/wlan/if_zyd.c +++ b/sys/dev/usb/wlan/if_zyd.c @@ -2547,7 +2547,7 @@ zyd_tx_start(struct zyd_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) bits = (rate == 11) ? (totlen * 16) + 10 : ((rate == 22) ? (totlen * 8) + 10 : (totlen * 8)); - desc->plcp_length = bits / ratediv[phy]; + desc->plcp_length = htole16(bits / ratediv[phy]); desc->plcp_service = 0; if (rate == 22 && (bits % 11) > 0 && (bits % 11) <= 3) desc->plcp_service |= ZYD_PLCP_LENGEXT; |