fix uninitialized vars in RRC

This commit is contained in:
Andre Puschmann 2019-10-18 12:32:13 +02:00
parent d5835fc8a0
commit 82e3fd1052
2 changed files with 25 additions and 25 deletions

View File

@ -382,7 +382,7 @@ private:
srslte::bit_buffer_t bit_buf;
rrc_state_t state, last_state = RRC_STATE_IDLE;
rrc_state_t state = RRC_STATE_IDLE, last_state = RRC_STATE_IDLE;
uint8_t transaction_id = 0;
srslte::s_tmsi_t ue_identity;
bool ue_identity_configured = false;
@ -413,9 +413,9 @@ private:
// RRC constants and timers
srslte::timers* timers = nullptr;
uint32_t n310_cnt, N310 = 0;
uint32_t n311_cnt, N311 = 0;
uint32_t t300, t301, t302, t310, t311, t304 = 0;
uint32_t n310_cnt = 0, N310 = 0;
uint32_t n311_cnt = 0, N311 = 0;
uint32_t t300 = 0, t301 = 0, t302 = 0, t310 = 0, t311 = 0, t304 = 0;
// Radio bearers
typedef enum{

View File

@ -415,9 +415,8 @@ void rrc::process_new_phy_meas(phy_meas_t meas)
// Detection of physical layer problems in RRC_CONNECTED (5.3.11.1)
void rrc::out_of_sync()
{
// CAUTION: We do not lock in this function since they are called from real-time threads
if (serving_cell && timers && rrc_log) {
serving_cell->in_sync = false;
// upon receiving N310 consecutive "out-of-sync" indications for the PCell from lower layers while neither T300,
@ -442,6 +441,7 @@ void rrc::out_of_sync()
}
}
}
}
// Recovery of physical layer problems (5.3.11.2)
void rrc::in_sync()