srb0 rnti
This commit is contained in:
committed by
francescomani
parent
9189129985
commit
9aee7bf745
@@ -45,10 +45,7 @@
|
|||||||
|
|
||||||
static NR_UE_MAC_INST_t *nr_ue_mac_inst;
|
static NR_UE_MAC_INST_t *nr_ue_mac_inst;
|
||||||
|
|
||||||
// TODO: refactor
|
static void send_srb0_rrc(int rnti, const uint8_t *sdu, sdu_size_t sdu_len, void *data)
|
||||||
struct gNB_MAC_INST_s;
|
|
||||||
typedef struct gNB_MAC_INST_s gNB_MAC_INST;
|
|
||||||
static void send_srb0_rrc(gNB_MAC_INST *mac, int rnti, const uint8_t *sdu, sdu_size_t sdu_len, void *rawUE)
|
|
||||||
{
|
{
|
||||||
AssertFatal(sdu_len > 0 && sdu_len < CCCH_SDU_SIZE, "invalid CCCH SDU size %d\n", sdu_len);
|
AssertFatal(sdu_len > 0 && sdu_len < CCCH_SDU_SIZE, "invalid CCCH SDU size %d\n", sdu_len);
|
||||||
|
|
||||||
@@ -68,7 +65,7 @@ static void send_srb0_rrc(gNB_MAC_INST *mac, int rnti, const uint8_t *sdu, sdu_s
|
|||||||
|
|
||||||
void send_msg3_rrc_request(module_id_t mod_id, int rnti)
|
void send_msg3_rrc_request(module_id_t mod_id, int rnti)
|
||||||
{
|
{
|
||||||
nr_rlc_activate_srb0(rnti, NULL, NULL, send_srb0_rrc);
|
nr_rlc_activate_srb0(rnti, NULL, send_srb0_rrc);
|
||||||
nr_mac_rrc_msg3_ind(mod_id, rnti);
|
nr_mac_rrc_msg3_ind(mod_id, rnti);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,7 +95,7 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(NR_UE_RRC_INST_t* rrc_inst) {
|
|||||||
int rc = rlc_module_init(0);
|
int rc = rlc_module_init(0);
|
||||||
AssertFatal(rc == 0, "%s: Could not initialize RLC layer\n", __FUNCTION__);
|
AssertFatal(rc == 0, "%s: Could not initialize RLC layer\n", __FUNCTION__);
|
||||||
/* convention: RNTI for SRB0 is 0, as it changes all the time */
|
/* convention: RNTI for SRB0 is 0, as it changes all the time */
|
||||||
nr_rlc_activate_srb0(0, NULL, NULL, send_srb0_rrc);
|
nr_rlc_activate_srb0(nr_ue_mac_inst->crnti, NULL, send_srb0_rrc);
|
||||||
if (IS_SOFTMODEM_NOS1){
|
if (IS_SOFTMODEM_NOS1){
|
||||||
// get default noS1 configuration
|
// get default noS1 configuration
|
||||||
NR_RadioBearerConfig_t *rbconfig = NULL;
|
NR_RadioBearerConfig_t *rbconfig = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user