Lines Matching refs:pkt_stat

38 	struct rtw_rx_pkt_stat *pkt_stat;  member
50 struct rtw_rx_pkt_stat *pkt_stat = iter_data->pkt_stat; in rtw_rx_addr_match_iter() local
65 ewma_rssi_add(&si->avg_rssi, pkt_stat->rssi); in rtw_rx_addr_match_iter()
69 struct rtw_rx_pkt_stat *pkt_stat, in rtw_rx_addr_match() argument
74 if (pkt_stat->crc_err || pkt_stat->icv_err || !pkt_stat->phy_status || in rtw_rx_addr_match()
80 data.pkt_stat = pkt_stat; in rtw_rx_addr_match()
87 struct rtw_rx_pkt_stat *pkt_stat, in rtw_rx_fill_rx_status() argument
98 if (pkt_stat->crc_err) in rtw_rx_fill_rx_status()
100 if (pkt_stat->decrypted) in rtw_rx_fill_rx_status()
103 if (pkt_stat->rate >= DESC_RATEVHT1SS_MCS0) in rtw_rx_fill_rx_status()
105 else if (pkt_stat->rate >= DESC_RATEMCS0) in rtw_rx_fill_rx_status()
108 if (pkt_stat->rate >= DESC_RATEVHT1SS_MCS0 && in rtw_rx_fill_rx_status()
109 pkt_stat->rate <= DESC_RATEVHT1SS_MCS9) { in rtw_rx_fill_rx_status()
111 rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT1SS_MCS0; in rtw_rx_fill_rx_status()
112 } else if (pkt_stat->rate >= DESC_RATEVHT2SS_MCS0 && in rtw_rx_fill_rx_status()
113 pkt_stat->rate <= DESC_RATEVHT2SS_MCS9) { in rtw_rx_fill_rx_status()
115 rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT2SS_MCS0; in rtw_rx_fill_rx_status()
116 } else if (pkt_stat->rate >= DESC_RATEVHT3SS_MCS0 && in rtw_rx_fill_rx_status()
117 pkt_stat->rate <= DESC_RATEVHT3SS_MCS9) { in rtw_rx_fill_rx_status()
119 rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT3SS_MCS0; in rtw_rx_fill_rx_status()
120 } else if (pkt_stat->rate >= DESC_RATEVHT4SS_MCS0 && in rtw_rx_fill_rx_status()
121 pkt_stat->rate <= DESC_RATEVHT4SS_MCS9) { in rtw_rx_fill_rx_status()
123 rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT4SS_MCS0; in rtw_rx_fill_rx_status()
124 } else if (pkt_stat->rate >= DESC_RATEMCS0 && in rtw_rx_fill_rx_status()
125 pkt_stat->rate <= DESC_RATEMCS15) { in rtw_rx_fill_rx_status()
126 rx_status->rate_idx = pkt_stat->rate - DESC_RATEMCS0; in rtw_rx_fill_rx_status()
128 pkt_stat->rate >= DESC_RATE6M && in rtw_rx_fill_rx_status()
129 pkt_stat->rate <= DESC_RATE54M) { in rtw_rx_fill_rx_status()
130 rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M; in rtw_rx_fill_rx_status()
132 pkt_stat->rate >= DESC_RATE1M && in rtw_rx_fill_rx_status()
133 pkt_stat->rate <= DESC_RATE54M) { in rtw_rx_fill_rx_status()
134 rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M; in rtw_rx_fill_rx_status()
140 rx_status->mactime = pkt_stat->tsf_low; in rtw_rx_fill_rx_status()
142 if (pkt_stat->bw == RTW_CHANNEL_WIDTH_80) in rtw_rx_fill_rx_status()
144 else if (pkt_stat->bw == RTW_CHANNEL_WIDTH_40) in rtw_rx_fill_rx_status()
149 rx_status->signal = pkt_stat->signal_power; in rtw_rx_fill_rx_status()
152 rx_status->chain_signal[path] = pkt_stat->rx_power[path]; in rtw_rx_fill_rx_status()
155 rtw_rx_addr_match(rtwdev, pkt_stat, hdr); in rtw_rx_fill_rx_status()