fix bug with uninitalized number of rx antennas

This commit is contained in:
Andre Puschmann 2017-07-14 10:41:44 +02:00
parent 39ebc0e5fd
commit 00be4a5de7
2 changed files with 2 additions and 1 deletions

View File

@ -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;
if (q != NULL) {
if (q != NULL && nof_rx_antennas > 0) {
ret = SRSLTE_ERROR;
srslte_cell_t cell;

View File

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