• Home
  • Raw
  • Download

Lines Matching refs:pstatus

70 				struct rtl_stats *pstatus)  in rtl_process_ui_rssi()  argument
77 if (!pstatus->packet_toself && !pstatus->packet_beacon) in rtl_process_ui_rssi()
80 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; in rtl_process_ui_rssi()
89 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi()
91 pstatus->signalstrength; in rtl_process_ui_rssi()
98 pstatus->rssi = rtlpriv->stats.signal_strength; in rtl_process_ui_rssi()
100 if (pstatus->is_cck) in rtl_process_ui_rssi()
107 pstatus->rx_mimo_signalstrength[rfpath]; in rtl_process_ui_rssi()
110 if (pstatus->rx_mimo_signalstrength[rfpath] > in rtl_process_ui_rssi()
115 (pstatus->rx_mimo_signalstrength[rfpath])) / in rtl_process_ui_rssi()
123 (pstatus->rx_mimo_signalstrength[rfpath])) / in rtl_process_ui_rssi()
126 rtlpriv->stats.rx_snr_db[rfpath] = pstatus->rx_snr[rfpath]; in rtl_process_ui_rssi()
128 pstatus->rx_mimo_evm_dbm[rfpath]; in rtl_process_ui_rssi()
130 pstatus->cfo_short[rfpath]; in rtl_process_ui_rssi()
131 rtlpriv->stats.rx_cfo_tail[rfpath] = pstatus->cfo_tail[rfpath]; in rtl_process_ui_rssi()
136 struct rtl_stats *pstatus) in rtl_update_rxsignalstatistics() argument
142 rtlpriv->stats.recv_signal_power = pstatus->recvsignalpower; in rtl_update_rxsignalstatistics()
143 if (pstatus->recvsignalpower > rtlpriv->stats.recv_signal_power) in rtl_update_rxsignalstatistics()
145 else if (pstatus->recvsignalpower < rtlpriv->stats.recv_signal_power) in rtl_update_rxsignalstatistics()
148 5 + pstatus->recvsignalpower + weighting) / 6; in rtl_update_rxsignalstatistics()
151 static void rtl_process_pwdb(struct ieee80211_hw *hw, struct rtl_stats *pstatus) in rtl_process_pwdb() argument
160 sta = rtl_find_sta(hw, pstatus->psaddr); in rtl_process_pwdb()
171 undec_sm_pwdb = pstatus->rx_pwdb_all; in rtl_process_pwdb()
172 if (pstatus->rx_pwdb_all > (u32) undec_sm_pwdb) { in rtl_process_pwdb()
175 (pstatus->rx_pwdb_all)) / (RX_SMOOTH_FACTOR); in rtl_process_pwdb()
180 (pstatus->rx_pwdb_all)) / (RX_SMOOTH_FACTOR); in rtl_process_pwdb()
190 rtl_update_rxsignalstatistics(hw, pstatus); in rtl_process_pwdb()
194 struct rtl_stats *pstatus) in rtl_process_ui_link_quality() argument
199 if (pstatus->signalquality == 0) in rtl_process_ui_link_quality()
210 rtlpriv->stats.ui_link_quality.total_val += pstatus->signalquality; in rtl_process_ui_link_quality()
213 pstatus->signalquality; in rtl_process_ui_link_quality()
222 if (pstatus->rx_mimo_sig_qual[n_stream] != -1) { in rtl_process_ui_link_quality()
225 pstatus->rx_mimo_sig_qual[n_stream]; in rtl_process_ui_link_quality()
230 (pstatus->rx_mimo_sig_qual[n_stream] * 1)) / in rtl_process_ui_link_quality()
237 struct rtl_stats *pstatus) in rtl_process_phyinfo() argument
240 if (!pstatus->packet_matchbssid) in rtl_process_phyinfo()
243 rtl_process_ui_rssi(hw, pstatus); in rtl_process_phyinfo()
244 rtl_process_pwdb(hw, pstatus); in rtl_process_phyinfo()
245 rtl_process_ui_link_quality(hw, pstatus); in rtl_process_phyinfo()