mirror of https://github.com/PentHertz/srsLTE.git
mac: make sure we only pull out valid rapid from subheader
This commit is contained in:
parent
ee1f910877
commit
77d4197364
|
@ -326,7 +326,7 @@ void ra_proc::tb_decoded_ok() {
|
||||||
current_ta = 0;
|
current_ta = 0;
|
||||||
|
|
||||||
while(rar_pdu_msg.next()) {
|
while(rar_pdu_msg.next()) {
|
||||||
if (rar_pdu_msg.get()->get_rapid() == sel_preamble) {
|
if (rar_pdu_msg.get()->has_rapid() && rar_pdu_msg.get()->get_rapid() == sel_preamble) {
|
||||||
|
|
||||||
rar_received = true;
|
rar_received = true;
|
||||||
process_timeadv_cmd(rar_pdu_msg.get()->get_ta_cmd());
|
process_timeadv_cmd(rar_pdu_msg.get()->get_ta_cmd());
|
||||||
|
@ -377,9 +377,11 @@ void ra_proc::tb_decoded_ok() {
|
||||||
contention_resolution_timer->run();
|
contention_resolution_timer->run();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (rar_pdu_msg.get()->has_rapid()) {
|
||||||
rInfo("Found RAR for preamble %d\n", rar_pdu_msg.get()->get_rapid());
|
rInfo("Found RAR for preamble %d\n", rar_pdu_msg.get()->get_rapid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ra_proc::step_response_reception(uint32_t tti)
|
void ra_proc::step_response_reception(uint32_t tti)
|
||||||
|
|
Loading…
Reference in New Issue