Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 2015 07:21:37 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289011 - head/sys/dev/wpi
Message-ID:  <201510080721.t987Lb7s051133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu Oct  8 07:21:36 2015
New Revision: 289011
URL: https://svnweb.freebsd.org/changeset/base/289011

Log:
  wpi(4): fix some byteorder conversions
  
  Submitted by:	<s3erios@gmail.com>
  Differential Revision:	https://reviews.freebsd.org/D3761

Modified:
  head/sys/dev/wpi/if_wpi.c

Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c	Thu Oct  8 07:20:22 2015	(r289010)
+++ head/sys/dev/wpi/if_wpi.c	Thu Oct  8 07:21:36 2015	(r289011)
@@ -2265,7 +2265,8 @@ wpi_notif_intr(struct wpi_softc *sc)
 			    "duration %u, status %x, tsf %ju, mode %x\n",
 			    stat->rtsfailcnt, stat->ackfailcnt,
 			    stat->btkillcnt, stat->rate, le32toh(stat->duration),
-			    le32toh(stat->status), *tsf, *mode);
+			    le32toh(stat->status), le64toh(*tsf),
+			    le32toh(*mode));
 
 			break;
 		}
@@ -4121,7 +4122,7 @@ wpi_scan(struct wpi_softc *sc, struct ie
 	 * after the scan probe request
 	 */
 	chan = (struct wpi_scan_chan *)frm;
-	chan->chan = htole16(ieee80211_chan2ieee(ic, c));
+	chan->chan = ieee80211_chan2ieee(ic, c);
 	chan->flags = 0;
 	if (nssid) {
 		hdr->crc_threshold = WPI_SCAN_CRC_TH_DEFAULT;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510080721.t987Lb7s051133>