svn commit: r321729 - head/sys/dev/rtwn/rtl8188e

Andriy Voskoboinyk avos at FreeBSD.org
Sun Jul 30 21:50:47 UTC 2017


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);
 	}


More information about the svn-src-head mailing list