Lines Matching refs:pkt_stat

38 	struct rtw_rx_pkt_stat *pkt_stat;  member
43 struct rtw_rx_pkt_stat *pkt_stat, in rtw_rx_phy_stat() argument
51 dm_info->curr_rx_rate = pkt_stat->rate; in rtw_rx_phy_stat()
56 switch (pkt_stat->rate) { in rtw_rx_phy_stat()
77 rtw_warn(rtwdev, "unknown pkt rate = %d\n", pkt_stat->rate); in rtw_rx_phy_stat()
93 cur_pkt_cnt->num_qry_pkt[pkt_stat->rate]++; in rtw_rx_phy_stat()
104 struct rtw_rx_pkt_stat *pkt_stat = iter_data->pkt_stat; in rtw_rx_addr_match_iter() local
114 rtw_rx_phy_stat(rtwdev, pkt_stat, hdr); in rtw_rx_addr_match_iter()
121 ewma_rssi_add(&si->avg_rssi, pkt_stat->rssi); in rtw_rx_addr_match_iter()
125 struct rtw_rx_pkt_stat *pkt_stat, in rtw_rx_addr_match() argument
130 if (pkt_stat->crc_err || pkt_stat->icv_err || !pkt_stat->phy_status || in rtw_rx_addr_match()
136 data.pkt_stat = pkt_stat; in rtw_rx_addr_match()
142 static void rtw_set_rx_freq_by_pktstat(struct rtw_rx_pkt_stat *pkt_stat, 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 rtw_rx_pkt_stat *pkt_stat, in rtw_rx_fill_rx_status() argument
163 rtw_set_rx_freq_by_pktstat(pkt_stat, rx_status); in rtw_rx_fill_rx_status()
164 if (pkt_stat->crc_err) in rtw_rx_fill_rx_status()
166 if (pkt_stat->decrypted) in rtw_rx_fill_rx_status()
169 if (pkt_stat->rate >= DESC_RATEVHT1SS_MCS0) in rtw_rx_fill_rx_status()
171 else if (pkt_stat->rate >= DESC_RATEMCS0) in rtw_rx_fill_rx_status()
175 pkt_stat->rate >= DESC_RATE6M && in rtw_rx_fill_rx_status()
176 pkt_stat->rate <= DESC_RATE54M) { in rtw_rx_fill_rx_status()
177 rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M; in rtw_rx_fill_rx_status()
179 pkt_stat->rate >= DESC_RATE1M && in rtw_rx_fill_rx_status()
180 pkt_stat->rate <= DESC_RATE54M) { in rtw_rx_fill_rx_status()
181 rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M; in rtw_rx_fill_rx_status()
182 } else if (pkt_stat->rate >= DESC_RATEMCS0) { in rtw_rx_fill_rx_status()
183 rtw_desc_to_mcsrate(pkt_stat->rate, &rx_status->rate_idx, in rtw_rx_fill_rx_status()
188 rx_status->mactime = pkt_stat->tsf_low; in rtw_rx_fill_rx_status()
190 if (pkt_stat->bw == RTW_CHANNEL_WIDTH_80) in rtw_rx_fill_rx_status()
192 else if (pkt_stat->bw == RTW_CHANNEL_WIDTH_40) in rtw_rx_fill_rx_status()
197 rx_status->signal = pkt_stat->signal_power; in rtw_rx_fill_rx_status()
200 rx_status->chain_signal[path] = pkt_stat->rx_power[path]; in rtw_rx_fill_rx_status()
203 rtw_rx_addr_match(rtwdev, pkt_stat, hdr); in rtw_rx_fill_rx_status()