Lines Matching refs:rx_stats
34 struct ath_rx_status *rx_stats, in ath9k_cmn_rx_accept() argument
45 is_valid_tkip = rx_stats->rs_keyix != ATH9K_RXKEYIX_INVALID && in ath9k_cmn_rx_accept()
46 test_bit(rx_stats->rs_keyix, common->tkip_keymap); in ath9k_cmn_rx_accept()
49 !(rx_stats->rs_status & in ath9k_cmn_rx_accept()
58 if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID || in ath9k_cmn_rx_accept()
59 !test_bit(rx_stats->rs_keyix, common->ccmp_keymap)) in ath9k_cmn_rx_accept()
60 rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS; in ath9k_cmn_rx_accept()
65 (rx_stats->rs_status & ATH9K_RXERR_MIC); in ath9k_cmn_rx_accept()
73 if (rx_stats->rs_status != 0) { in ath9k_cmn_rx_accept()
76 if (rx_stats->rs_status & ATH9K_RXERR_CRC) { in ath9k_cmn_rx_accept()
81 if ((rx_stats->rs_status & ATH9K_RXERR_DECRYPT) || in ath9k_cmn_rx_accept()
82 (!is_mc && (rx_stats->rs_status & ATH9K_RXERR_KEYMISS))) { in ath9k_cmn_rx_accept()
99 if (rx_stats->rs_status & ~status_mask) in ath9k_cmn_rx_accept()
120 struct ath_rx_status *rx_stats, in ath9k_cmn_rx_skb_postprocess() argument
150 keyix = rx_stats->rs_keyix; in ath9k_cmn_rx_skb_postprocess()
172 struct ath_rx_status *rx_stats, in ath9k_cmn_process_rate() argument
188 if (rx_stats->rs_rate & 0x80) { in ath9k_cmn_process_rate()
191 rxs->enc_flags |= rx_stats->enc_flags; in ath9k_cmn_process_rate()
192 rxs->bw = rx_stats->bw; in ath9k_cmn_process_rate()
193 rxs->rate_idx = rx_stats->rs_rate & 0x7f; in ath9k_cmn_process_rate()
198 if (sband->bitrates[i].hw_value == rx_stats->rs_rate) { in ath9k_cmn_process_rate()
202 if (sband->bitrates[i].hw_value_short == rx_stats->rs_rate) { in ath9k_cmn_process_rate()
215 struct ath_rx_status *rx_stats, in ath9k_cmn_process_rssi() argument
220 int rssi = rx_stats->rs_rssi; in ath9k_cmn_process_rssi()
226 if (rx_stats->rs_moreaggr) { in ath9k_cmn_process_rssi()
235 if (rx_stats->rs_rssi == ATH9K_RSSI_BAD) { in ath9k_cmn_process_rssi()
240 for (i = 0, j = 0; i < ARRAY_SIZE(rx_stats->rs_rssi_ctl); i++) { in ath9k_cmn_process_rssi()
246 rssi = rx_stats->rs_rssi_ctl[i]; in ath9k_cmn_process_rssi()
257 if (rx_stats->is_mybeacon && in ath9k_cmn_process_rssi()
260 ATH_RSSI_LPF(common->last_rssi, rx_stats->rs_rssi); in ath9k_cmn_process_rssi()
271 rxs->signal = ah->noise + rx_stats->rs_rssi; in ath9k_cmn_process_rssi()