Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/rtwn/rtl8812a/r12a_rx.c
Show First 20 Lines • Show All 315 Lines • ▼ Show 20 Lines | r12a_get_rx_stats(struct rtwn_softc *sc, struct ieee80211_rx_stats *rxs, | ||||
} | } | ||||
/* | /* | ||||
* XXX always zero for RTL8821AU | * XXX always zero for RTL8821AU | ||||
* (vendor driver does not check this field) | * (vendor driver does not check this field) | ||||
*/ | */ | ||||
#if 0 | #if 0 | ||||
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 = MS(le16toh(physt->phyw1), R12A_PHYW1_CHAN); | rxs->c_ieee = MS(le16toh(physt->phyw1), R12A_PHYW1_CHAN); | ||||
rxs->c_freq = ieee80211_ieee2mhz(rxs->c_ieee, | rxs->c_freq = ieee80211_ieee2mhz(rxs->c_ieee, | ||||
(rxs->c_ieee < 36) ? IEEE80211_CHAN_2GHZ : IEEE80211_CHAN_5GHZ); | (rxs->c_ieee < 36) ? IEEE80211_CHAN_2GHZ : IEEE80211_CHAN_5GHZ); | ||||
rxs->c_band = (rxs->c_ieee < 36) ? IEEE80211_CHAN_2GHZ : IEEE80211_CHAN_5GHZ; | |||||
#endif | #endif | ||||
} | } |