SRSENB: fix MAC pending PHY config

master
Xavier Arteaga 4 years ago committed by Xavier Arteaga
parent 5e06430455
commit f39abe0094

@ -200,6 +200,18 @@ public:
delete[] old_data;
}
}
iterator erase(iterator it)
{
if (it < begin() or it >= end()) {
log_warning("Trying to access out-of-bounds iterator.\n");
return end();
}
std::copy(it + 1, end(), it);
size_--;
return it + 1;
}
bool operator==(const dyn_array<T>& other) const
{
return size() == other.size() and std::equal(data_, data_ + size(), other.data_);

@ -299,7 +299,7 @@ void rrc::ue::mac_controller::apply_scell_cfg_updates(uint32_t ue_cc_idx)
}
}
pending_scells_cfg.reset();
pending_scells_cfg->erase(it);
}
} // namespace srsenb

Loading…
Cancel
Save