proc_ra: add further state checks when getting harq_retx signalled

that makes sure to only restart contres timer if we are actually
in the contention resolution state.
master
Andre Puschmann 4 years ago
parent 607ba7c262
commit 2c156f0007

@ -605,6 +605,10 @@ void ra_proc::update_rar_window(int& rar_window_start, int& rar_window_length)
void ra_proc::harq_retx() void ra_proc::harq_retx()
{ {
task_queue.push([this]() { task_queue.push([this]() {
if (state != CONTENTION_RESOLUTION) {
rWarning("Ignore HARQ retx when not in contention resolution.");
return;
}
rInfo("Restarting ContentionResolutionTimer=%d ms", contention_resolution_timer.duration()); rInfo("Restarting ContentionResolutionTimer=%d ms", contention_resolution_timer.duration());
contention_resolution_timer.run(); contention_resolution_timer.run();
}); });
@ -614,6 +618,10 @@ void ra_proc::harq_retx()
void ra_proc::harq_max_retx() void ra_proc::harq_max_retx()
{ {
task_queue.push([this]() { task_queue.push([this]() {
if (state != CONTENTION_RESOLUTION) {
rWarning("Ignore HARQ retx when not in contention resolution.");
return;
}
rWarning("Contention Resolution is considered not successful. Stopping PDCCH Search and going to Response Error"); rWarning("Contention Resolution is considered not successful. Stopping PDCCH Search and going to Response Error");
response_error(); response_error();
}); });

Loading…
Cancel
Save