Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/rtwn/rtl8188e/r88e_rx.c
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | r88e_get_rx_stats(struct rtwn_softc *sc, struct ieee80211_rx_stats *rxs, | ||||
const void *desc, const void *physt_ptr) | const void *desc, const void *physt_ptr) | ||||
{ | { | ||||
const struct r88e_rx_phystat *physt = physt_ptr; | const struct r88e_rx_phystat *physt = physt_ptr; | ||||
r92c_get_rx_stats(sc, rxs, desc, physt_ptr); | r92c_get_rx_stats(sc, rxs, desc, physt_ptr); | ||||
if (!sc->sc_ht40) { /* XXX center channel */ | if (!sc->sc_ht40) { /* XXX center channel */ | ||||
rxs->r_flags |= IEEE80211_R_IEEE | IEEE80211_R_FREQ; | rxs->r_flags |= IEEE80211_R_IEEE | IEEE80211_R_FREQ; | ||||
rxs->r_flags |= IEEE80211_R_BAND; | |||||
rxs->c_ieee = physt->chan; | rxs->c_ieee = physt->chan; | ||||
rxs->c_freq = ieee80211_ieee2mhz(rxs->c_ieee, | rxs->c_freq = ieee80211_ieee2mhz(rxs->c_ieee, | ||||
IEEE80211_CHAN_2GHZ); | IEEE80211_CHAN_2GHZ); | ||||
rxs->c_band = IEEE80211_CHAN_2GHZ; | |||||
} | } | ||||
} | } |