Make restart work again: do not free/copy ru frame_parms
This commit is contained in:
@@ -186,7 +186,6 @@ void phy_free_RU(RU_t *ru) {
|
|||||||
int i,j,p;
|
int i,j,p;
|
||||||
RU_CALIBRATION *calibration = &ru->calibration;
|
RU_CALIBRATION *calibration = &ru->calibration;
|
||||||
LOG_I(PHY, "Feeing RU signal buffers (if_south %s) nb_tx %d\n", ru_if_types[ru->if_south], ru->nb_tx);
|
LOG_I(PHY, "Feeing RU signal buffers (if_south %s) nb_tx %d\n", ru_if_types[ru->if_south], ru->nb_tx);
|
||||||
free_and_zero(ru->frame_parms);
|
|
||||||
|
|
||||||
if (ru->if_south <= REMOTE_IF5) { // this means REMOTE_IF5 or LOCAL_RF, so free memory for time-domain signals
|
if (ru->if_south <= REMOTE_IF5) { // this means REMOTE_IF5 or LOCAL_RF, so free memory for time-domain signals
|
||||||
for (i = 0; i < ru->nb_tx; i++) free_and_zero(ru->common.txdata[i]);
|
for (i = 0; i < ru->nb_tx; i++) free_and_zero(ru->common.txdata[i]);
|
||||||
|
|||||||
@@ -439,8 +439,6 @@ int restart_L1L2(module_id_t enb_id) {
|
|||||||
|
|
||||||
RC.ru_mask |= (1 << ru->idx);
|
RC.ru_mask |= (1 << ru->idx);
|
||||||
/* copy the changed frame parameters to the RU */
|
/* copy the changed frame parameters to the RU */
|
||||||
/* TODO this should be done for all RUs associated to this eNB */
|
|
||||||
memcpy(&ru->frame_parms, &RC.eNB[enb_id][0]->frame_parms, sizeof(LTE_DL_FRAME_PARMS));
|
|
||||||
set_function_spec_param(RC.ru[enb_id]);
|
set_function_spec_param(RC.ru[enb_id]);
|
||||||
/* reset the list of connected UEs in the MAC, since in this process with
|
/* reset the list of connected UEs in the MAC, since in this process with
|
||||||
* loose all UEs (have to reconnect) */
|
* loose all UEs (have to reconnect) */
|
||||||
|
|||||||
Reference in New Issue
Block a user