Fixed CFO correction

master
ismagom 10 years ago
parent 4232020557
commit 956a9d61dd

@ -195,7 +195,7 @@ int main(int argc, char **argv) {
gettimeofday(&tdata[1], NULL);
if (force_cfo != CFO_AUTO) {
cfo_correct(&cfocorr, input, input, -force_cfo/128);
cfo_correct(&cfocorr, input, input, force_cfo/128);
}
if (force_N_id_2 != -1) {

@ -328,7 +328,7 @@ int ue_sync_get_buffer(ue_sync_t *q, cf_t **sf_symbols) {
}
/* Do CFO Correction and deliver the frame */
cfo_correct(&q->cfocorr, q->input_buffer, q->input_buffer, -q->cur_cfo / CURRENT_FFTSIZE);
cfo_correct(&q->cfocorr, q->input_buffer, q->input_buffer, q->cur_cfo / CURRENT_FFTSIZE);
*sf_symbols = q->input_buffer;
break;

@ -117,19 +117,19 @@ int bcch_bch_mib_unpack(uint8_t *buffer, uint32_t msg_nof_bits, lte_cell_t *cell
switch(req->dl_Bandwidth) {
case dl_Bandwidth_n6:
cell->nof_ports = 6;
cell->nof_prb = 6;
break;
case dl_Bandwidth_n15:
cell->nof_ports = 15;
cell->nof_prb = 15;
break;
case dl_Bandwidth_n25:
cell->nof_ports = 25;
cell->nof_prb = 25;
break;
case dl_Bandwidth_n50:
cell->nof_ports = 50;
cell->nof_prb = 50;
break;
case dl_Bandwidth_n75:
cell->nof_ports = 75;
cell->nof_prb = 75;
break;
}
if (req->phich_Config.phich_Duration == phich_Duration_normal) {

Loading…
Cancel
Save