From owner-svn-src-all@freebsd.org Thu Oct 8 07:21:38 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 381719D0EEA; Thu, 8 Oct 2015 07:21:38 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 046B3CA5; Thu, 8 Oct 2015 07:21:37 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t987LbbE051134; Thu, 8 Oct 2015 07:21:37 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t987Lb7s051133; Thu, 8 Oct 2015 07:21:37 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201510080721.t987Lb7s051133@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Thu, 8 Oct 2015 07:21:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289011 - head/sys/dev/wpi X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 07:21:38 -0000 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: 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;