Commit e21b00ad authored by cig's avatar cig

Bugfix - missing call to mac_rlc_data_ind in the noS1 mode:

- now the UE is passing again data to the upper layers in noS1 mode
- minor cleanups
parent 5162f0c4
...@@ -94,9 +94,9 @@ typedef struct { ...@@ -94,9 +94,9 @@ typedef struct {
// 38.321 ch6.2.1, 38.331 // 38.321 ch6.2.1, 38.331
#define DL_SCH_LCID_CCCH 0x00 #define DL_SCH_LCID_CCCH 0x00
#define DL_SCH_LCID_SRB1 0x01 #define DL_SCH_LCID_DCCH 0x01
#define DL_SCH_LCID_SRB2 0x02 #define DL_SCH_LCID_DCCH1 0x02
#define DL_SCH_LCID_SRB3 0x03 #define DL_SCH_LCID_DTCH 0x03
#define DL_SCH_LCID_RECOMMENDED_BITRATE 0x2F #define DL_SCH_LCID_RECOMMENDED_BITRATE 0x2F
#define DL_SCH_LCID_SP_ZP_CSI_RS_RES_SET_ACT 0x30 #define DL_SCH_LCID_SP_ZP_CSI_RS_RES_SET_ACT 0x30
#define DL_SCH_LCID_PUCCH_SPATIAL_RELATION_ACT 0x31 #define DL_SCH_LCID_PUCCH_SPATIAL_RELATION_ACT 0x31
......
...@@ -142,6 +142,7 @@ void nr_ue_send_sdu(module_id_t module_idP,uint8_t CC_id, frame_t frameP, uint8_ ...@@ -142,6 +142,7 @@ void nr_ue_send_sdu(module_id_t module_idP,uint8_t CC_id, frame_t frameP, uint8_
void nr_ue_process_mac_pdu( void nr_ue_process_mac_pdu(
module_id_t module_idP, module_id_t module_idP,
uint8_t CC_id, uint8_t CC_id,
frame_t frameP,
uint8_t *pduP, uint8_t *pduP,
uint16_t mac_pdu_len, uint16_t mac_pdu_len,
uint8_t eNB_index, uint8_t eNB_index,
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
/*! \file gNB_scheduler_phytest.c /*! \file gNB_scheduler_phytest.c
* \brief gNB scheduling procedures in phy_test mode * \brief gNB scheduling procedures in phy_test mode
* \author Guy De Souza * \author Guy De Souza, G. Casati
* \date 07/2018 * \date 07/2018
* \email: desouza@eurecom.fr * \email: desouza@eurecom.fr, guido.casati@iis.fraunhofer.de
* \version 1.0 * \version 1.0
* @ingroup _mac * @ingroup _mac
*/ */
...@@ -311,16 +311,6 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP, ...@@ -311,16 +311,6 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
//through the LTE stack //through the LTE stack
if (IS_SOFTMODEM_NOS1){ if (IS_SOFTMODEM_NOS1){
/* TODO
// RLC data on DCCH
if (TBS_bytes - ta_len - header_length_total - sdu_length_total - 3 > 0) {
}*/
/* TODO
// RLC data on DCCH1
if (TBS_bytes - ta_len - header_length_total - sdu_length_total - 3 > 0) {
}*/
for (lcid = NB_RB_MAX - 1; lcid >= DTCH; lcid--) { for (lcid = NB_RB_MAX - 1; lcid >= DTCH; lcid--) {
LOG_D(MAC, "[gNB %d], Frame %d, DTCH%d->DLSCH, Checking RLC status (TBS %d bytes, len %d)\n", LOG_D(MAC, "[gNB %d], Frame %d, DTCH%d->DLSCH, Checking RLC status (TBS %d bytes, len %d)\n",
module_idP, frameP, lcid, TBS_bytes, TBS_bytes - ta_len - header_length_total - sdu_length_total - 3); module_idP, frameP, lcid, TBS_bytes, TBS_bytes - ta_len - header_length_total - sdu_length_total - 3);
......
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