Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jul 2017 21:50:46 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321729 - head/sys/dev/rtwn/rtl8188e
Message-ID:  <201707302150.v6ULokh6062791@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Sun Jul 30 21:50:45 2017
New Revision: 321729
URL: https://svnweb.freebsd.org/changeset/base/321729

Log:
  rtwn: drop unnecessary / wrong conversion.
  
  The 'chan' field occupies only one byte.

Modified:
  head/sys/dev/rtwn/rtl8188e/r88e_rx.c

Modified: head/sys/dev/rtwn/rtl8188e/r88e_rx.c
==============================================================================
--- head/sys/dev/rtwn/rtl8188e/r88e_rx.c	Sun Jul 30 21:24:20 2017	(r321728)
+++ head/sys/dev/rtwn/rtl8188e/r88e_rx.c	Sun Jul 30 21:50:45 2017	(r321729)
@@ -221,7 +221,7 @@ r88e_get_rx_stats(struct rtwn_softc *sc, struct ieee80
 
 	if (!sc->sc_ht40) {	/* XXX center channel */
 		rxs->r_flags |= IEEE80211_R_IEEE | IEEE80211_R_FREQ;
-		rxs->c_ieee = le16toh(physt->chan);
+		rxs->c_ieee = physt->chan;
 		rxs->c_freq = ieee80211_ieee2mhz(rxs->c_ieee,
 		    IEEE80211_CHAN_2GHZ);
 	}



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