Commit f01cbb8c authored by Cedric Roux's avatar Cedric Roux

fapi: activate CA and process ceBitmap

parent c447bbfa
...@@ -805,10 +805,17 @@ printf("RUN fapi_schedule_retransmission_ue\n"); ...@@ -805,10 +805,17 @@ printf("RUN fapi_schedule_retransmission_ue\n");
if (d->nr_rlcPDU_List[0] != 0) { printf("%s:%d:%s: error?\n", __FILE__, __LINE__, __FUNCTION__); /*abort();*/ } if (d->nr_rlcPDU_List[0] != 0) { printf("%s:%d:%s: error?\n", __FILE__, __LINE__, __FUNCTION__); /*abort();*/ }
if (d->nr_rlcPDU_List[1] != 0) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (d->nr_rlcPDU_List[1] != 0) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
if (d->ceBitmap[0]) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
if (d->ceBitmap[1]) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (d->ceBitmap[1]) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
if (d->servCellIndex != 0) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (d->servCellIndex != 0) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
/* activate/deactive 2nd cell
* TODO: do it better, only activate at subframe+8 if ACK received at subframe +4
*/
if (d->ceBitmap[0]) {
if (d->ceBitmap[0] != ff_AD) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
mac_xface->ca_activate(module_id, d->rnti, d->activationDeactivationCE);
}
UE_id = find_UE_id(module_id, d->rnti); UE_id = find_UE_id(module_id, d->rnti);
if (UE_id == -1) { if (UE_id == -1) {
#if MEGALOG #if MEGALOG
...@@ -895,10 +902,17 @@ printf("RUN fapi_schedule_ue\n"); ...@@ -895,10 +902,17 @@ printf("RUN fapi_schedule_ue\n");
if (d->nr_rlcPDU_List[0] != 1) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (d->nr_rlcPDU_List[0] != 1) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
if (d->nr_rlcPDU_List[1] != 0) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (d->nr_rlcPDU_List[1] != 0) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
if (d->ceBitmap[0]) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
if (d->ceBitmap[1]) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (d->ceBitmap[1]) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
if (d->servCellIndex != 0) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (d->servCellIndex != 0) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
/* activate/deactive 2nd cell
* TODO: do it better, only activate at subframe+8 if ACK received at subframe +4
*/
if (d->ceBitmap[0]) {
if (d->ceBitmap[0] != ff_AD) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
mac_xface->ca_activate(module_id, d->rnti, d->activationDeactivationCE);
}
/* TODO: deal with MCS 29-31 /* TODO: deal with MCS 29-31
* in the meantime, we store the latest used mcs for each rnti/harq_pid * in the meantime, we store the latest used mcs for each rnti/harq_pid
*/ */
......
...@@ -281,7 +281,7 @@ void fapi_activate_carrier_aggregation(module_id_t mod_idP, int cc_idP, rnti_t r ...@@ -281,7 +281,7 @@ void fapi_activate_carrier_aggregation(module_id_t mod_idP, int cc_idP, rnti_t r
p.tddAckNackFeedbackMode = ff_bundling; /* get real one */ p.tddAckNackFeedbackMode = ff_bundling; /* get real one */
p.ackNackRepetitionFactor = 0; /* get real one */ p.ackNackRepetitionFactor = 0; /* get real one */
p.extendedBSRSizes = false; p.extendedBSRSizes = false;
p.caSupport = false; p.caSupport = true;
p.crossCarrierSchedSupport = false; p.crossCarrierSchedSupport = false;
p.pcellCarrierIndex = 0; /* TBC */ p.pcellCarrierIndex = 0; /* TBC */
p.nr_scells = 1; /* use real value */ p.nr_scells = 1; /* use real value */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment