Transmit Msg3 only if available

This commit is contained in:
Ismael Gomez 2018-02-13 23:20:35 +01:00
parent 49369c412c
commit ca4a22aeaf
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ private:
// New transmission
reset();
// Uplink grant in a RAR
if (grant->is_from_rar) {
// Uplink grant in a RAR and there is a PDU in the Msg3 buffer
if (grant->is_from_rar && !harq_entity->mux_unit->msg3_is_transmitted()) {
Debug("Getting Msg3 buffer payload, grant size=%d bytes\n", grant->n_bytes[0]);
pdu_ptr = harq_entity->mux_unit->msg3_get(payload_buffer, grant->n_bytes[0]);
if (pdu_ptr) {