Lines Matching refs:sc_stats
247 sc->sc_stats.ast_tx_packets = 0; in ath_ioctl()
248 sc->sc_stats.ast_rx_packets = 0; in ath_ioctl()
251 sc->sc_stats.ast_tx_packets += if_getcounter(ifp, in ath_ioctl()
253 sc->sc_stats.ast_rx_packets += if_getcounter(ifp, in ath_ioctl()
256 sc->sc_stats.ast_tx_rssi = ATH_RSSI(sc->sc_halstats.ns_avgtxrssi); in ath_ioctl()
257 sc->sc_stats.ast_rx_rssi = ATH_RSSI(sc->sc_halstats.ns_avgrssi); in ath_ioctl()
259 sc->sc_stats.ast_tdma_tsfadjp = TDMA_AVG(sc->sc_avgtsfdeltap); in ath_ioctl()
260 sc->sc_stats.ast_tdma_tsfadjm = TDMA_AVG(sc->sc_avgtsfdeltam); in ath_ioctl()
263 sc->sc_stats.ast_tx_rate = in ath_ioctl()
266 sc->sc_stats.ast_tx_rate |= IEEE80211_RATE_MCS; in ath_ioctl()
267 return copyout(&sc->sc_stats, ifr_data_get_ptr(ifr), in ath_ioctl()
268 sizeof (sc->sc_stats)); in ath_ioctl()
278 memset(&sc->sc_stats, 0, sizeof(sc->sc_stats)); in ath_ioctl()