sched,nr: fix invalid memory write

master
Francisco 4 years ago committed by Francisco Paisana
parent 75153c7c83
commit de05e1e549

@ -23,7 +23,7 @@ namespace sched_nr_impl {
class harq_proc
{
public:
explicit harq_proc(uint32_t id_, uint32_t max_nof_tb_ = 1) : pid(id_), max_nof_tb(max_nof_tb_) {}
explicit harq_proc(uint32_t id_) : pid(id_) {}
bool empty() const
{
@ -55,8 +55,6 @@ private:
uint32_t tbs = 0;
};
const uint32_t max_nof_tb;
uint32_t max_retx = 1;
tti_point tti_tx;
tti_point tti_ack;

@ -26,12 +26,17 @@ struct sched_nr_cc_output_res_t {
sched_nr_interface::ul_tti_request_t* ul_cc_result;
};
struct ue_nr_cc_ctxt_t {
std::array<ue_harq_ctxt_t, SCHED_NR_MAX_HARQ> dl_harqs;
std::array<ue_harq_ctxt_t, SCHED_NR_MAX_HARQ> ul_harqs;
};
struct sim_nr_ue_ctxt_t {
uint16_t rnti;
uint32_t preamble_idx;
srsran::tti_point prach_tti_rx;
sched_nr_interface::ue_cfg_t ue_cfg;
std::vector<ue_cc_ctxt_t> cc_list;
std::vector<ue_nr_cc_ctxt_t> cc_list;
bool is_last_dl_retx(uint32_t ue_cc_idx, uint32_t pid) const
{
@ -117,7 +122,6 @@ private:
srsran::tti_point current_tti_rx;
std::map<uint16_t, sched_nr_ue_sim> ue_db;
int error_counter = 0;
mutable std::mutex mutex;
std::condition_variable cond_var;

Loading…
Cancel
Save