fix bug with uninitalized number of rx antennas

master
Andre Puschmann 8 years ago
parent 12d58bbb62
commit bb34be24ac

@ -95,7 +95,7 @@ int srslte_ue_cellsearch_init_multi(srslte_ue_cellsearch_t * q, uint32_t max_fra
{ {
int ret = SRSLTE_ERROR_INVALID_INPUTS; int ret = SRSLTE_ERROR_INVALID_INPUTS;
if (q != NULL) { if (q != NULL && nof_rx_antennas > 0) {
ret = SRSLTE_ERROR; ret = SRSLTE_ERROR;
srslte_cell_t cell; srslte_cell_t cell;

@ -59,6 +59,7 @@ phy::phy() : workers_pool(MAX_WORKERS),
void phy::set_default_args(phy_args_t *args) void phy::set_default_args(phy_args_t *args)
{ {
args->nof_rx_ant = 1;
args->ul_pwr_ctrl_en = false; args->ul_pwr_ctrl_en = false;
args->prach_gain = -1; args->prach_gain = -1;
args->cqi_max = -1; args->cqi_max = -1;

Loading…
Cancel
Save