nr rlc: remove hardcoded values
This commit is contained in:
@@ -1589,7 +1589,7 @@ void nr_rlc_entity_am_recv_sdu(nr_rlc_entity_t *_entity,
|
|||||||
|
|
||||||
sdu = nr_rlc_new_sdu(buffer, size, sdu_id);
|
sdu = nr_rlc_new_sdu(buffer, size, sdu_id);
|
||||||
|
|
||||||
LOG_I(RLC, "Created new RLC SDU and append it to the RLC list \n");
|
LOG_D(RLC, "Created new RLC SDU and append it to the RLC list \n");
|
||||||
|
|
||||||
nr_rlc_sdu_segment_list_append(&entity->tx_list, &entity->tx_end, sdu);
|
nr_rlc_sdu_segment_list_append(&entity->tx_list, &entity->tx_end, sdu);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -665,11 +665,17 @@ static void add_drb_am(int rnti, struct NR_DRB_ToAddMod *s, NR_RLC_BearerConfig_
|
|||||||
case NR_RLC_Config_PR_am: {
|
case NR_RLC_Config_PR_am: {
|
||||||
struct NR_RLC_Config__am *am;
|
struct NR_RLC_Config__am *am;
|
||||||
am = r->choice.am;
|
am = r->choice.am;
|
||||||
|
t_reassembly = decode_t_reassembly(am->dl_AM_RLC.t_Reassembly);
|
||||||
t_status_prohibit = decode_t_status_prohibit(am->dl_AM_RLC.t_StatusProhibit);
|
t_status_prohibit = decode_t_status_prohibit(am->dl_AM_RLC.t_StatusProhibit);
|
||||||
t_poll_retransmit = decode_t_poll_retransmit(am->ul_AM_RLC.t_PollRetransmit);
|
t_poll_retransmit = decode_t_poll_retransmit(am->ul_AM_RLC.t_PollRetransmit);
|
||||||
poll_pdu = decode_poll_pdu(am->ul_AM_RLC.pollPDU);
|
poll_pdu = decode_poll_pdu(am->ul_AM_RLC.pollPDU);
|
||||||
poll_byte = decode_poll_byte(am->ul_AM_RLC.pollByte);
|
poll_byte = decode_poll_byte(am->ul_AM_RLC.pollByte);
|
||||||
max_retx_threshold = decode_max_retx_threshold(am->ul_AM_RLC.maxRetxThreshold);
|
max_retx_threshold = decode_max_retx_threshold(am->ul_AM_RLC.maxRetxThreshold);
|
||||||
|
if (*am->dl_AM_RLC.sn_FieldLength != *am->ul_AM_RLC.sn_FieldLength) {
|
||||||
|
LOG_E(RLC, "%s:%d:%s: fatal\n", __FILE__, __LINE__, __FUNCTION__);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
sn_field_length = decode_sn_field_length_am(*am->dl_AM_RLC.sn_FieldLength);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@@ -683,14 +689,6 @@ static void add_drb_am(int rnti, struct NR_DRB_ToAddMod *s, NR_RLC_BearerConfig_
|
|||||||
LOG_D(RLC, "%s:%d:%s: warning DRB %d already exist for ue %d, do nothing\n",
|
LOG_D(RLC, "%s:%d:%s: warning DRB %d already exist for ue %d, do nothing\n",
|
||||||
__FILE__, __LINE__, __FUNCTION__, drb_id, rnti);
|
__FILE__, __LINE__, __FUNCTION__, drb_id, rnti);
|
||||||
} else {
|
} else {
|
||||||
/* hack: hardcode values for NR */
|
|
||||||
t_poll_retransmit = 45;
|
|
||||||
t_reassembly = 35;
|
|
||||||
t_status_prohibit = 0;
|
|
||||||
poll_pdu = -1;
|
|
||||||
poll_byte = -1;
|
|
||||||
max_retx_threshold = 8;
|
|
||||||
sn_field_length = 12;
|
|
||||||
nr_rlc_am = new_nr_rlc_entity_am(100000,
|
nr_rlc_am = new_nr_rlc_entity_am(100000,
|
||||||
100000,
|
100000,
|
||||||
deliver_sdu, ue,
|
deliver_sdu, ue,
|
||||||
|
|||||||
Reference in New Issue
Block a user