fix for going to idle: release MAC config only after resetting MAC
This commit is contained in:
committed by
Robert Schmidt
parent
eee4a0c652
commit
ca877514aa
@@ -1611,8 +1611,7 @@ static void configure_timeAlignmentTimer(NR_timer_t *time_alignment_timer, NR_Ti
|
|||||||
nr_timer_start(time_alignment_timer);
|
nr_timer_start(time_alignment_timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nr_rrc_mac_config_req_reset(module_id_t module_id,
|
void nr_rrc_mac_config_req_reset(module_id_t module_id, NR_UE_MAC_reset_cause_t cause)
|
||||||
NR_UE_MAC_reset_cause_t cause)
|
|
||||||
{
|
{
|
||||||
NR_UE_MAC_INST_t *mac = get_mac_inst(module_id);
|
NR_UE_MAC_INST_t *mac = get_mac_inst(module_id);
|
||||||
int ret = pthread_mutex_lock(&mac->if_mutex);
|
int ret = pthread_mutex_lock(&mac->if_mutex);
|
||||||
@@ -1621,8 +1620,8 @@ void nr_rrc_mac_config_req_reset(module_id_t module_id,
|
|||||||
switch (cause) {
|
switch (cause) {
|
||||||
case GO_TO_IDLE:
|
case GO_TO_IDLE:
|
||||||
reset_ra(mac, true);
|
reset_ra(mac, true);
|
||||||
release_mac_configuration(mac, cause);
|
|
||||||
nr_ue_init_mac(mac);
|
nr_ue_init_mac(mac);
|
||||||
|
release_mac_configuration(mac, cause);
|
||||||
nr_ue_mac_default_configs(mac);
|
nr_ue_mac_default_configs(mac);
|
||||||
// new sync but no target cell id -> -1
|
// new sync but no target cell id -> -1
|
||||||
nr_ue_send_synch_request(mac, module_id, 0, &sync_req);
|
nr_ue_send_synch_request(mac, module_id, 0, &sync_req);
|
||||||
|
|||||||
Reference in New Issue
Block a user