rtwn: drop unnecessary / wrong conversion.
The 'chan' field occupies only one byte.
This commit is contained in:
parent
c151945c86
commit
ff97f477b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321729
@ -221,7 +221,7 @@ r88e_get_rx_stats(struct rtwn_softc *sc, struct ieee80211_rx_stats *rxs,
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user