|
|
@ -256,7 +256,7 @@ void ue::push_pdu(uint32_t tti, uint32_t len)
|
|
|
|
bool ue::process_ce(srslte::sch_subh *subh) {
|
|
|
|
bool ue::process_ce(srslte::sch_subh *subh) {
|
|
|
|
uint32_t buff_size[4] = {0, 0, 0, 0};
|
|
|
|
uint32_t buff_size[4] = {0, 0, 0, 0};
|
|
|
|
float phr = 0;
|
|
|
|
float phr = 0;
|
|
|
|
uint32_t idx = 0;
|
|
|
|
int32_t idx = 0;
|
|
|
|
uint16_t old_rnti = 0;
|
|
|
|
uint16_t old_rnti = 0;
|
|
|
|
bool is_bsr = false;
|
|
|
|
bool is_bsr = false;
|
|
|
|
switch(subh->ce_type()) {
|
|
|
|
switch(subh->ce_type()) {
|
|
|
@ -279,6 +279,10 @@ bool ue::process_ce(srslte::sch_subh *subh) {
|
|
|
|
case srslte::sch_subh::TRUNC_BSR:
|
|
|
|
case srslte::sch_subh::TRUNC_BSR:
|
|
|
|
case srslte::sch_subh::SHORT_BSR:
|
|
|
|
case srslte::sch_subh::SHORT_BSR:
|
|
|
|
idx = subh->get_bsr(buff_size);
|
|
|
|
idx = subh->get_bsr(buff_size);
|
|
|
|
|
|
|
|
if(idx == -1){
|
|
|
|
|
|
|
|
Error("Invalid Index Passed to lc groups\n");
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
for (uint32_t i=0;i<lc_groups[idx].size();i++) {
|
|
|
|
for (uint32_t i=0;i<lc_groups[idx].size();i++) {
|
|
|
|
// Indicate BSR to scheduler
|
|
|
|
// Indicate BSR to scheduler
|
|
|
|
sched->ul_bsr(rnti, lc_groups[idx][i], buff_size[idx]);
|
|
|
|
sched->ul_bsr(rnti, lc_groups[idx][i], buff_size[idx]);
|
|
|
|