mirror of https://github.com/PentHertz/srsLTE.git
fix bug with uninitalized number of rx antennas
This commit is contained in:
parent
39ebc0e5fd
commit
00be4a5de7
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue