Lines Matching refs:pstatus
91 struct rtl_stats *pstatus) in rtl_process_ui_rssi() argument
98 if (!pstatus->packet_toself && !pstatus->packet_beacon) in rtl_process_ui_rssi()
101 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; in rtl_process_ui_rssi()
110 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi()
112 pstatus->signalstrength; in rtl_process_ui_rssi()
119 pstatus->rssi = rtlpriv->stats.signal_strength; in rtl_process_ui_rssi()
121 if (pstatus->is_cck) in rtl_process_ui_rssi()
128 pstatus->rx_mimo_signalstrength[rfpath]; in rtl_process_ui_rssi()
131 if (pstatus->rx_mimo_signalstrength[rfpath] > in rtl_process_ui_rssi()
136 (pstatus->rx_mimo_signalstrength[rfpath])) / in rtl_process_ui_rssi()
144 (pstatus->rx_mimo_signalstrength[rfpath])) / in rtl_process_ui_rssi()
147 rtlpriv->stats.rx_snr_db[rfpath] = pstatus->rx_snr[rfpath]; in rtl_process_ui_rssi()
149 pstatus->rx_mimo_evm_dbm[rfpath]; in rtl_process_ui_rssi()
151 pstatus->cfo_short[rfpath]; in rtl_process_ui_rssi()
152 rtlpriv->stats.rx_cfo_tail[rfpath] = pstatus->cfo_tail[rfpath]; in rtl_process_ui_rssi()
157 struct rtl_stats *pstatus) in rtl_update_rxsignalstatistics() argument
163 rtlpriv->stats.recv_signal_power = pstatus->recvsignalpower; in rtl_update_rxsignalstatistics()
164 if (pstatus->recvsignalpower > rtlpriv->stats.recv_signal_power) in rtl_update_rxsignalstatistics()
166 else if (pstatus->recvsignalpower < rtlpriv->stats.recv_signal_power) in rtl_update_rxsignalstatistics()
169 5 + pstatus->recvsignalpower + weighting) / 6; in rtl_update_rxsignalstatistics()
172 static void rtl_process_pwdb(struct ieee80211_hw *hw, struct rtl_stats *pstatus) in rtl_process_pwdb() argument
181 sta = rtl_find_sta(hw, pstatus->psaddr); in rtl_process_pwdb()
192 undec_sm_pwdb = pstatus->rx_pwdb_all; in rtl_process_pwdb()
193 if (pstatus->rx_pwdb_all > (u32) undec_sm_pwdb) { in rtl_process_pwdb()
196 (pstatus->rx_pwdb_all)) / (RX_SMOOTH_FACTOR); in rtl_process_pwdb()
201 (pstatus->rx_pwdb_all)) / (RX_SMOOTH_FACTOR); in rtl_process_pwdb()
211 rtl_update_rxsignalstatistics(hw, pstatus); in rtl_process_pwdb()
215 struct rtl_stats *pstatus) in rtl_process_ui_link_quality() argument
220 if (pstatus->signalquality == 0) in rtl_process_ui_link_quality()
231 rtlpriv->stats.ui_link_quality.total_val += pstatus->signalquality; in rtl_process_ui_link_quality()
234 pstatus->signalquality; in rtl_process_ui_link_quality()
243 if (pstatus->rx_mimo_sig_qual[n_stream] != -1) { in rtl_process_ui_link_quality()
246 pstatus->rx_mimo_sig_qual[n_stream]; in rtl_process_ui_link_quality()
251 (pstatus->rx_mimo_sig_qual[n_stream] * 1)) / in rtl_process_ui_link_quality()
258 struct rtl_stats *pstatus) in rtl_process_phyinfo() argument
261 if (!pstatus->packet_matchbssid) in rtl_process_phyinfo()
264 rtl_process_ui_rssi(hw, pstatus); in rtl_process_phyinfo()
265 rtl_process_pwdb(hw, pstatus); in rtl_process_phyinfo()
266 rtl_process_ui_link_quality(hw, pstatus); in rtl_process_phyinfo()