pass current SS TTI when formatting DRB common IND

master
Andre Puschmann 4 years ago
parent 8652f75510
commit 07f22326b4

@ -408,7 +408,7 @@ public:
}
static std::string
get_drb_common_ind_for_pdu(uint32_t lcid, const std::string cell_, srslte::unique_byte_buffer_t drbpdu)
get_drb_common_ind_for_pdu(uint32_t tti, uint32_t lcid, const std::string cell_, srslte::unique_byte_buffer_t drbpdu)
{
Document resp;
resp.SetObject();
@ -425,9 +425,6 @@ public:
routing_info.AddMember("RadioBearerId", radiobearer_id, resp.GetAllocator());
// TimingInfo
// FIXME: Use real TTI
uint32_t tti = 10;
// SFN
uint32_t sfn = tti / 10;
Value sfn_key(kObjectType);

@ -1043,7 +1043,7 @@ void ttcn3_syssim::write_pdu(uint32_t lcid, unique_byte_buffer_t pdu)
srb.tx(std::move(pdu));
} else {
std::string out = ttcn3_helpers::get_drb_common_ind_for_pdu(lcid, cells[pcell_idx]->name, std::move(pdu));
std::string out = ttcn3_helpers::get_drb_common_ind_for_pdu(tti, lcid, cells[pcell_idx]->name, std::move(pdu));
log->error("DRB send:\n%s", out.c_str());
drb.tx(out);
}

Loading…
Cancel
Save