NR RRC - Pass gNB_RRC_UE_t struct to next_available_drb function

parent 66a299d9
...@@ -33,7 +33,7 @@ NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *ue, ...@@ -33,7 +33,7 @@ NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *ue,
bool enable_sdap, bool enable_sdap,
int do_drb_integrity, int do_drb_integrity,
int do_drb_ciphering) { int do_drb_ciphering) {
uint8_t drb_id = next_available_drb(rnti, pduSession->param.pdusession_id); uint8_t drb_id = next_available_drb(ue, rnti, pduSession->param.pdusession_id);
NR_DRB_ToAddMod_t *DRB_config = NULL; NR_DRB_ToAddMod_t *DRB_config = NULL;
NR_SDAP_Config_t *SDAP_config = NULL; NR_SDAP_Config_t *SDAP_config = NULL;
...@@ -108,7 +108,7 @@ NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *ue, ...@@ -108,7 +108,7 @@ NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *ue,
return DRB_config; return DRB_config;
} }
uint8_t next_available_drb(rnti_t rnti, uint8_t pdusession_id) { uint8_t next_available_drb(gNB_RRC_UE_t *rrc_ue, rnti_t rnti, uint8_t pdusession_id) {
nr_ue_t *ue; nr_ue_t *ue;
if(nr_ue_get(rnti)) if(nr_ue_get(rnti))
ue = nr_ue_get(rnti); ue = nr_ue_get(rnti);
......
...@@ -43,7 +43,7 @@ typedef struct nr_ue_s { ...@@ -43,7 +43,7 @@ typedef struct nr_ue_s {
struct nr_ue_s *next_ue; struct nr_ue_s *next_ue;
} nr_ue_t; } nr_ue_t;
NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *ue, NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *rrc_ue,
rnti_t rnti, rnti_t rnti,
const pdu_session_param_t *pduSession, const pdu_session_param_t *pduSession,
bool enable_sdap, bool enable_sdap,
...@@ -52,6 +52,6 @@ NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *ue, ...@@ -52,6 +52,6 @@ NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *ue,
nr_ue_t *nr_ue_get(rnti_t rnti); nr_ue_t *nr_ue_get(rnti_t rnti);
nr_ue_t *nr_ue_new(rnti_t rnti); nr_ue_t *nr_ue_new(rnti_t rnti);
uint8_t next_available_drb(rnti_t rnti, uint8_t pdusession_id); uint8_t next_available_drb(gNB_RRC_UE_t *ue, rnti_t rnti, uint8_t pdusession_id);
#endif #endif
\ No newline at end of file
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