mirror of https://github.com/PentHertz/srsLTE.git
mac: fixing pdcch order bug, dont send if rnti is not in ue_db
This commit is contained in:
parent
fec6871309
commit
5181d07c8a
|
@ -776,17 +776,20 @@ int mac::get_dl_sched(uint32_t tti_tx_dl, dl_sched_list_t& dl_sched_res_list)
|
|||
|
||||
// Copy PDCCH order grants
|
||||
for (uint32_t i = 0; i < sched_result.po.size(); i++) {
|
||||
uint16_t rnti = sched_result.po[i].dci.rnti;
|
||||
if (ue_db.contains(rnti)) {
|
||||
// Copy dci info
|
||||
dl_sched_res->pdsch[n].dci = sched_result.po[i].dci;
|
||||
|
||||
if (pcap) {
|
||||
pcap->write_dl_pch(dl_sched_res->pdsch[n].data[0], sched_result.po[i].tbs, true, tti_tx_dl, enb_cc_idx);
|
||||
}
|
||||
if (pcap_net) {
|
||||
pcap_net->write_dl_pch(dl_sched_res->pdsch[n].data[0], sched_result.po[i].tbs, true, tti_tx_dl, enb_cc_idx);
|
||||
}
|
||||
|
||||
n++;
|
||||
} else {
|
||||
logger.warning("Invalid PDCCH order scheduling result. User 0x%x does not exist", rnti);
|
||||
}
|
||||
}
|
||||
|
||||
dl_sched_res->nof_grants = n;
|
||||
|
|
Loading…
Reference in New Issue