svn commit: r196810 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/usb/wlan dev/xen/xenpci

Weongyo Jeong weongyo at FreeBSD.org
Fri Sep 4 05:37:50 UTC 2009


Author: weongyo
Date: Fri Sep  4 05:37:49 2009
New Revision: 196810
URL: http://svn.freebsd.org/changeset/base/196810

Log:
  MFC r196809:
    fix a TX issue on big endian machines like powerpc or sparc64.  Now
    zyd(4) should work on all architectures.
  
    Obtained from:	OpenBSD
  
  Approved by:	re (kib)

Modified:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/usb/wlan/if_zyd.c
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/usb/wlan/if_zyd.c
==============================================================================
--- stable/8/sys/dev/usb/wlan/if_zyd.c	Fri Sep  4 05:28:09 2009	(r196809)
+++ stable/8/sys/dev/usb/wlan/if_zyd.c	Fri Sep  4 05:37:49 2009	(r196810)
@@ -2547,7 +2547,7 @@ zyd_tx_start(struct zyd_softc *sc, struc
 
 	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;


More information about the svn-src-stable-8 mailing list