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);
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to