reduce the LC channel number from 11 to 3(DCCH, DCCH1, DTCH) when schedule dlsch
This commit is contained in:
@@ -1048,7 +1048,12 @@ schedule_ue_spec(module_id_t module_idP,
|
|||||||
header_len_dtch = 0;
|
header_len_dtch = 0;
|
||||||
header_len_dtch_last = 0; // the header length of the last mac sdu
|
header_len_dtch_last = 0; // the header length of the last mac sdu
|
||||||
// lcid has to be sorted before the actual allocation (similar struct as ue_list).
|
// lcid has to be sorted before the actual allocation (similar struct as ue_list).
|
||||||
|
#if defined(UE_EXPANSION) || defined(UE_EXPANSION_SIM2)
|
||||||
|
lcid = DTCH;
|
||||||
|
{
|
||||||
|
#else
|
||||||
for (lcid = NB_RB_MAX - 1; lcid >= DTCH; lcid--) {
|
for (lcid = NB_RB_MAX - 1; lcid >= DTCH; lcid--) {
|
||||||
|
#endif
|
||||||
// TBD: check if the lcid is active
|
// TBD: check if the lcid is active
|
||||||
|
|
||||||
header_len_dtch += 3;
|
header_len_dtch += 3;
|
||||||
|
|||||||
@@ -119,7 +119,11 @@ store_dlsch_buffer(module_id_t Mod_id, frame_t frameP,
|
|||||||
|
|
||||||
rnti = UE_RNTI(Mod_id, UE_id);
|
rnti = UE_RNTI(Mod_id, UE_id);
|
||||||
|
|
||||||
for (i = 0; i < MAX_NUM_LCID; i++) { // loop over all the logical channels
|
#if defined(UE_EXPANSION) || defined(UE_EXPANSION_SIM2)
|
||||||
|
for (i = DCCH; i <=DTCH; i++) { // loop over DCCH, DCCH1 and DTCH
|
||||||
|
#else
|
||||||
|
for (i = 0; i < MAX_NUM_LCID; i++) { // loop over all the logical channels
|
||||||
|
#endif
|
||||||
|
|
||||||
rlc_status =
|
rlc_status =
|
||||||
mac_rlc_status_ind(Mod_id, rnti, Mod_id, frameP, subframeP,
|
mac_rlc_status_ind(Mod_id, rnti, Mod_id, frameP, subframeP,
|
||||||
|
|||||||
Reference in New Issue
Block a user