mirror of https://github.com/PentHertz/srsLTE.git
Fix jump depending on uninitialized variable in srsenb::sched_ue::set_bearer_cfg_unlocked
This commit is contained in:
parent
d848524d8b
commit
afc209711c
|
@ -102,10 +102,10 @@ public:
|
|||
};
|
||||
|
||||
struct ue_bearer_cfg_t {
|
||||
int priority;
|
||||
int bsd;
|
||||
int pbr;
|
||||
int group;
|
||||
int priority = 0;
|
||||
int bsd = 0;
|
||||
int pbr = 0;
|
||||
int group = 0;
|
||||
enum { IDLE = 0, UL, DL, BOTH } direction = IDLE;
|
||||
};
|
||||
|
||||
|
|
|
@ -301,7 +301,7 @@ public:
|
|||
uint8_t mmec = 0;
|
||||
|
||||
// state
|
||||
sched_interface::ue_cfg_t current_sched_ue_cfg;
|
||||
sched_interface::ue_cfg_t current_sched_ue_cfg = {};
|
||||
uint32_t rlf_cnt = 0;
|
||||
uint8_t transaction_id = 0;
|
||||
rrc_state_t state = RRC_STATE_IDLE;
|
||||
|
|
|
@ -1262,7 +1262,7 @@ void rrc::ue::handle_rrc_reconf_complete(rrc_conn_recfg_complete_s* msg, srslte:
|
|||
parent->mac->ue_cfg(rnti, ¤t_sched_ue_cfg);
|
||||
|
||||
// Finally, add SRB2 and DRB1 to the scheduler
|
||||
srsenb::sched_interface::ue_bearer_cfg_t bearer_cfg;
|
||||
srsenb::sched_interface::ue_bearer_cfg_t bearer_cfg = {};
|
||||
bearer_cfg.direction = srsenb::sched_interface::ue_bearer_cfg_t::BOTH;
|
||||
bearer_cfg.group = 0;
|
||||
parent->mac->bearer_ue_cfg(rnti, 2, &bearer_cfg);
|
||||
|
|
Loading…
Reference in New Issue