Lines Matching refs:de_digtable
217 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_find_minimum_rssi() local
223 de_digtable->min_undec_pwdb_for_dm = 0; in rtl92d_dm_find_minimum_rssi()
230 de_digtable->min_undec_pwdb_for_dm = in rtl92d_dm_find_minimum_rssi()
236 de_digtable->min_undec_pwdb_for_dm = in rtl92d_dm_find_minimum_rssi()
240 de_digtable->min_undec_pwdb_for_dm); in rtl92d_dm_find_minimum_rssi()
243 de_digtable->min_undec_pwdb_for_dm = rtlpriv->dm.UNDEC_SM_PWDB; in rtl92d_dm_find_minimum_rssi()
246 de_digtable->min_undec_pwdb_for_dm); in rtl92d_dm_find_minimum_rssi()
250 de_digtable->min_undec_pwdb_for_dm); in rtl92d_dm_find_minimum_rssi()
256 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_cck_packet_detection_thresh() local
259 if (de_digtable->cursta_cstate == DIG_STA_CONNECT) { in rtl92d_dm_cck_packet_detection_thresh()
260 if (de_digtable->pre_cck_pd_state == CCK_PD_STAGE_LOWRSSI) { in rtl92d_dm_cck_packet_detection_thresh()
261 if (de_digtable->min_undec_pwdb_for_dm <= 25) in rtl92d_dm_cck_packet_detection_thresh()
262 de_digtable->cur_cck_pd_state = in rtl92d_dm_cck_packet_detection_thresh()
265 de_digtable->cur_cck_pd_state = in rtl92d_dm_cck_packet_detection_thresh()
268 if (de_digtable->min_undec_pwdb_for_dm <= 20) in rtl92d_dm_cck_packet_detection_thresh()
269 de_digtable->cur_cck_pd_state = in rtl92d_dm_cck_packet_detection_thresh()
272 de_digtable->cur_cck_pd_state = in rtl92d_dm_cck_packet_detection_thresh()
276 de_digtable->cur_cck_pd_state = CCK_PD_STAGE_LOWRSSI; in rtl92d_dm_cck_packet_detection_thresh()
278 if (de_digtable->pre_cck_pd_state != de_digtable->cur_cck_pd_state) { in rtl92d_dm_cck_packet_detection_thresh()
279 if (de_digtable->cur_cck_pd_state == CCK_PD_STAGE_LOWRSSI) { in rtl92d_dm_cck_packet_detection_thresh()
288 de_digtable->pre_cck_pd_state = de_digtable->cur_cck_pd_state; in rtl92d_dm_cck_packet_detection_thresh()
291 de_digtable->cursta_cstate == DIG_STA_CONNECT ? in rtl92d_dm_cck_packet_detection_thresh()
294 de_digtable->cur_cck_pd_state == CCK_PD_STAGE_LOWRSSI ? in rtl92d_dm_cck_packet_detection_thresh()
304 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_write_dig() local
308 de_digtable->cur_igvalue, de_digtable->pre_igvalue, in rtl92d_dm_write_dig()
309 de_digtable->back_val); in rtl92d_dm_write_dig()
310 if (de_digtable->dig_enable_flag == false) { in rtl92d_dm_write_dig()
312 de_digtable->pre_igvalue = 0x17; in rtl92d_dm_write_dig()
315 if (de_digtable->pre_igvalue != de_digtable->cur_igvalue) { in rtl92d_dm_write_dig()
317 de_digtable->cur_igvalue); in rtl92d_dm_write_dig()
319 de_digtable->cur_igvalue); in rtl92d_dm_write_dig()
320 de_digtable->pre_igvalue = de_digtable->cur_igvalue; in rtl92d_dm_write_dig()
326 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_early_mode_enabled() local
331 if (de_digtable->last_min_undec_pwdb_for_dm >= 50 in rtl92d_early_mode_enabled()
332 && de_digtable->min_undec_pwdb_for_dm < 50) { in rtl92d_early_mode_enabled()
336 } else if (de_digtable->last_min_undec_pwdb_for_dm <= 55 && in rtl92d_early_mode_enabled()
337 de_digtable->min_undec_pwdb_for_dm > 55) { in rtl92d_early_mode_enabled()
351 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_dig() local
352 u8 value_igi = de_digtable->cur_igvalue; in rtl92d_dm_dig()
358 de_digtable->last_min_undec_pwdb_for_dm = in rtl92d_dm_dig()
359 de_digtable->min_undec_pwdb_for_dm; in rtl92d_dm_dig()
377 de_digtable->cursta_cstate = DIG_STA_CONNECT; in rtl92d_dm_dig()
379 de_digtable->cursta_cstate = DIG_STA_DISCONNECT; in rtl92d_dm_dig()
392 de_digtable->large_fa_hit, de_digtable->forbidden_igi); in rtl92d_dm_dig()
395 de_digtable->recover_cnt, de_digtable->rx_gain_min); in rtl92d_dm_dig()
402 de_digtable->large_fa_hit++; in rtl92d_dm_dig()
403 if (de_digtable->forbidden_igi < de_digtable->cur_igvalue) { in rtl92d_dm_dig()
404 de_digtable->forbidden_igi = de_digtable->cur_igvalue; in rtl92d_dm_dig()
405 de_digtable->large_fa_hit = 1; in rtl92d_dm_dig()
407 if (de_digtable->large_fa_hit >= 3) { in rtl92d_dm_dig()
408 if ((de_digtable->forbidden_igi + 1) > DM_DIG_MAX) in rtl92d_dm_dig()
409 de_digtable->rx_gain_min = DM_DIG_MAX; in rtl92d_dm_dig()
411 de_digtable->rx_gain_min = in rtl92d_dm_dig()
412 (de_digtable->forbidden_igi + 1); in rtl92d_dm_dig()
413 de_digtable->recover_cnt = 3600; /* 3600=2hr */ in rtl92d_dm_dig()
417 if (de_digtable->recover_cnt != 0) { in rtl92d_dm_dig()
418 de_digtable->recover_cnt--; in rtl92d_dm_dig()
420 if (de_digtable->large_fa_hit == 0) { in rtl92d_dm_dig()
421 if ((de_digtable->forbidden_igi - 1) < in rtl92d_dm_dig()
423 de_digtable->forbidden_igi = in rtl92d_dm_dig()
425 de_digtable->rx_gain_min = in rtl92d_dm_dig()
429 de_digtable->forbidden_igi--; in rtl92d_dm_dig()
430 de_digtable->rx_gain_min = in rtl92d_dm_dig()
431 (de_digtable->forbidden_igi + 1); in rtl92d_dm_dig()
433 } else if (de_digtable->large_fa_hit == 3) { in rtl92d_dm_dig()
434 de_digtable->large_fa_hit = 0; in rtl92d_dm_dig()
440 de_digtable->large_fa_hit, de_digtable->forbidden_igi); in rtl92d_dm_dig()
443 de_digtable->recover_cnt, de_digtable->rx_gain_min); in rtl92d_dm_dig()
447 else if (value_igi < de_digtable->rx_gain_min) in rtl92d_dm_dig()
448 value_igi = de_digtable->rx_gain_min; in rtl92d_dm_dig()
449 de_digtable->cur_igvalue = value_igi; in rtl92d_dm_dig()