Lines Matching refs:ui_rssi
210 struct rt_smooth_data *ui_rssi; in _rtl92d_process_ui_rssi() local
216 ui_rssi = &rtlpriv->stats.ui_rssi; in _rtl92d_process_ui_rssi()
219 if (ui_rssi->total_num++ >= PHY_RSSI_SLID_WIN_MAX) { in _rtl92d_process_ui_rssi()
220 ui_rssi->total_num = PHY_RSSI_SLID_WIN_MAX; in _rtl92d_process_ui_rssi()
221 last_rssi = ui_rssi->elements[ui_rssi->index]; in _rtl92d_process_ui_rssi()
222 ui_rssi->total_val -= last_rssi; in _rtl92d_process_ui_rssi()
224 ui_rssi->total_val += pstats->signalstrength; in _rtl92d_process_ui_rssi()
225 ui_rssi->elements[ui_rssi->index++] = pstats->signalstrength; in _rtl92d_process_ui_rssi()
226 if (ui_rssi->index >= PHY_RSSI_SLID_WIN_MAX) in _rtl92d_process_ui_rssi()
227 ui_rssi->index = 0; in _rtl92d_process_ui_rssi()
228 tmpval = ui_rssi->total_val / ui_rssi->total_num; in _rtl92d_process_ui_rssi()