From 4c09e592e611c3179bc8fb1d0dcaf4c52b79631b Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Thu, 8 Oct 2015 07:21:36 +0000 Subject: [PATCH] wpi(4): fix some byteorder conversions Submitted by: Differential Revision: https://reviews.freebsd.org/D3761 --- sys/dev/wpi/if_wpi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index 23368831b0ed..9df98fa81ecc 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -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 ieee80211_channel *c) * 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;