Lines Matching refs:rx_status
143 struct ieee80211_rx_status *rx_status) in rtw_set_rx_freq_by_pktstat() argument
145 rx_status->freq = pkt_stat->freq; in rtw_set_rx_freq_by_pktstat()
146 rx_status->band = pkt_stat->band; in rtw_set_rx_freq_by_pktstat()
150 struct ieee80211_rx_status *rx_status, in rtw_update_rx_freq_from_ie() argument
186 rtw_set_rx_freq_by_pktstat(pkt_stat, rx_status); in rtw_update_rx_freq_from_ie()
193 struct ieee80211_rx_status *rx_status) in rtw_rx_fill_rx_status() argument
198 memset(rx_status, 0, sizeof(*rx_status)); in rtw_rx_fill_rx_status()
199 rx_status->freq = hw->conf.chandef.chan->center_freq; in rtw_rx_fill_rx_status()
200 rx_status->band = hw->conf.chandef.chan->band; in rtw_rx_fill_rx_status()
203 rtw_set_rx_freq_by_pktstat(pkt_stat, rx_status); in rtw_rx_fill_rx_status()
205 rx_status->flag |= RX_FLAG_FAILED_FCS_CRC; in rtw_rx_fill_rx_status()
207 rx_status->flag |= RX_FLAG_DECRYPTED; in rtw_rx_fill_rx_status()
210 rx_status->encoding = RX_ENC_VHT; in rtw_rx_fill_rx_status()
212 rx_status->encoding = RX_ENC_HT; in rtw_rx_fill_rx_status()
214 if (rx_status->band == NL80211_BAND_5GHZ && in rtw_rx_fill_rx_status()
217 rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M; in rtw_rx_fill_rx_status()
218 } else if (rx_status->band == NL80211_BAND_2GHZ && in rtw_rx_fill_rx_status()
221 rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M; in rtw_rx_fill_rx_status()
223 rtw_desc_to_mcsrate(pkt_stat->rate, &rx_status->rate_idx, in rtw_rx_fill_rx_status()
224 &rx_status->nss); in rtw_rx_fill_rx_status()
227 rx_status->flag |= RX_FLAG_MACTIME_START; in rtw_rx_fill_rx_status()
228 rx_status->mactime = pkt_stat->tsf_low; in rtw_rx_fill_rx_status()
231 rx_status->bw = RATE_INFO_BW_80; in rtw_rx_fill_rx_status()
233 rx_status->bw = RATE_INFO_BW_40; in rtw_rx_fill_rx_status()
235 rx_status->bw = RATE_INFO_BW_20; in rtw_rx_fill_rx_status()
238 rx_status->signal = pkt_stat->signal_power; in rtw_rx_fill_rx_status()
240 rx_status->chains |= BIT(path); in rtw_rx_fill_rx_status()
241 rx_status->chain_signal[path] = pkt_stat->rx_power[path]; in rtw_rx_fill_rx_status()
244 rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL; in rtw_rx_fill_rx_status()
253 rx_status->flag |= RX_FLAG_NO_PSDU; in rtw_rx_fill_rx_status()
260 struct ieee80211_rx_status *rx_status) in rtw_rx_query_rx_desc() argument
306 rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status); in rtw_rx_query_rx_desc()