# HG changeset patch # User Mychaela Falconia # Date 1507158333 0 # Node ID 6d27bbc94e3cf6dc99b889e2c13dc9283bcac351 # Parent 2604e9569e318e4c0c5f093114b615e737548b84 l1p_func.c: reconstruction complete, perfect match to original TCS211 object diff -r 2604e9569e31 -r 6d27bbc94e3c chipsetsw/layer1/p_cfile/l1p_func.c --- a/chipsetsw/layer1/p_cfile/l1p_func.c Wed Oct 04 22:50:34 2017 +0000 +++ b/chipsetsw/layer1/p_cfile/l1p_func.c Wed Oct 04 23:05:33 2017 +0000 @@ -466,11 +466,11 @@ // Get AGC according to the last known IL. input_level = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level; + agc = Cust_get_agc_from_IL(radio_freq_ctrl, input_level >> 1, PWR_ID); lna_off = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off; - agc = Cust_get_agc_from_IL(radio_freq_ctrl, input_level >> 1, PWR_ID); // Memorize the IL and LNA used for AGC setting. // Note: the same structure as for TCR meas is used for PC_MEAS_CHAN measurements - l1pa_l1ps_com.tcr_freq_list.used_il_lna.il = input_level; + l1pa_l1ps_com.tcr_freq_list.used_il_lna.il = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level; l1pa_l1ps_com.tcr_freq_list.used_il_lna.lna = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off;