Patch provided by Gabriel Arrobo.
Mainly comestics and integer type management Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -41,7 +41,7 @@ enum sctp_state_e {
|
||||
};
|
||||
|
||||
typedef struct sctp_new_association_req_s {
|
||||
/* Upper layer connexion identifier */
|
||||
/* Upper layer connection identifier */
|
||||
uint16_t ulp_cnx_id;
|
||||
|
||||
/* The port to connect to */
|
||||
@@ -60,7 +60,7 @@ typedef struct sctp_new_association_req_s {
|
||||
} sctp_new_association_req_t;
|
||||
|
||||
typedef struct sctp_new_association_req_multi_s {
|
||||
/* Upper layer connexion identifier */
|
||||
/* Upper layer connection identifier */
|
||||
uint16_t ulp_cnx_id;
|
||||
|
||||
/* The port to connect to */
|
||||
@@ -98,7 +98,7 @@ typedef struct sctp_new_association_ind_s {
|
||||
} sctp_new_association_ind_t;
|
||||
|
||||
typedef struct sctp_new_association_resp_s {
|
||||
/* Upper layer connexion identifier */
|
||||
/* Upper layer connection identifier */
|
||||
uint16_t ulp_cnx_id;
|
||||
|
||||
/* SCTP Association ID */
|
||||
@@ -149,7 +149,7 @@ typedef struct sctp_listener_register_upper_layer_s {
|
||||
/* Port to listen to */
|
||||
uint16_t port;
|
||||
/* Payload protocol identifier
|
||||
* Any data receveid on PPID != will be discarded
|
||||
* Any data received on PPID != will be discarded
|
||||
*/
|
||||
uint32_t ppid;
|
||||
} sctp_listener_register_upper_layer_t;
|
||||
|
||||
@@ -117,7 +117,7 @@ int DU_send_F1_SETUP_REQUEST(instance_t instance) {
|
||||
ASN_SEQUENCE_ADD(&out->protocolIEs.list, ie);
|
||||
|
||||
/* mandatory */
|
||||
/* c2. GNB_DU_ID (integrer value) */
|
||||
/* c2. GNB_DU_ID (integer value) */
|
||||
ie = (F1AP_F1SetupRequestIEs_t *)calloc(1, sizeof(F1AP_F1SetupRequestIEs_t));
|
||||
ie->id = F1AP_ProtocolIE_ID_id_gNB_DU_ID;
|
||||
ie->criticality = F1AP_Criticality_reject;
|
||||
@@ -138,7 +138,7 @@ int DU_send_F1_SETUP_REQUEST(instance_t instance) {
|
||||
}
|
||||
|
||||
/* mandatory */
|
||||
/* c4. serverd cells list */
|
||||
/* c4. served cells list */
|
||||
ie = (F1AP_F1SetupRequestIEs_t *)calloc(1, sizeof(F1AP_F1SetupRequestIEs_t));
|
||||
ie->id = F1AP_ProtocolIE_ID_id_gNB_DU_Served_Cells_List;
|
||||
ie->criticality = F1AP_Criticality_reject;
|
||||
@@ -150,7 +150,7 @@ int DU_send_F1_SETUP_REQUEST(instance_t instance) {
|
||||
i<num_cells_available;
|
||||
i++) {
|
||||
/* mandatory */
|
||||
/* 4.1 serverd cells item */
|
||||
/* 4.1 served cells item */
|
||||
|
||||
F1AP_GNB_DU_Served_Cells_ItemIEs_t *gnb_du_served_cell_list_item_ies;
|
||||
gnb_du_served_cell_list_item_ies = (F1AP_GNB_DU_Served_Cells_ItemIEs_t *)calloc(1, sizeof(F1AP_GNB_DU_Served_Cells_ItemIEs_t));
|
||||
@@ -162,7 +162,7 @@ int DU_send_F1_SETUP_REQUEST(instance_t instance) {
|
||||
F1AP_GNB_DU_Served_Cells_Item_t gnb_du_served_cells_item;
|
||||
memset((void *)&gnb_du_served_cells_item, 0, sizeof(F1AP_GNB_DU_Served_Cells_Item_t));
|
||||
|
||||
/* 4.1.1 serverd cell Information */
|
||||
/* 4.1.1 served cell Information */
|
||||
F1AP_Served_Cell_Information_t served_cell_information;
|
||||
|
||||
memset((void *)&served_cell_information, 0, sizeof(F1AP_Served_Cell_Information_t));
|
||||
|
||||
@@ -140,7 +140,7 @@ void *gNB_app_task(void *args_p)
|
||||
|
||||
itti_mark_task_ready (TASK_GNB_APP);
|
||||
|
||||
LOG_I(PHY, "%s() Task ready initialise structures\n", __FUNCTION__);
|
||||
LOG_I(PHY, "%s() Task ready initialize structures\n", __FUNCTION__);
|
||||
|
||||
RCconfig_NR_L1();
|
||||
|
||||
|
||||
@@ -410,7 +410,7 @@ void RCconfig_nr_macrlc() {
|
||||
RC.nrmac[j]->eth_params_s.remote_portd = *(MacRLC_ParamList.paramarray[j][MACRLC_REMOTE_S_PORTD_IDX].iptr);
|
||||
RC.nrmac[j]->eth_params_s.transp_preference = ETH_UDP_MODE;
|
||||
|
||||
//sf_ahead = 2; // Cannot cope with 4 subframes betweem RX and TX - set it to 2
|
||||
//sf_ahead = 2; // Cannot cope with 4 subframes between RX and TX - set it to 2
|
||||
|
||||
printf("**************** vnf_port:%d\n", RC.mac[j]->eth_params_s.my_portc);
|
||||
configure_nfapi_vnf(RC.nrmac[j]->eth_params_s.my_addr, RC.nrmac[j]->eth_params_s.my_portc);
|
||||
@@ -682,7 +682,7 @@ void RCconfig_NRRRC(MessageDef *msg_p, uint32_t i, gNB_RRC_INST *rrc) {
|
||||
gnb_id = *(GNBParamList.paramarray[i][GNB_GNB_ID_IDX].uptr);
|
||||
}
|
||||
|
||||
printf("NRRRC %d: Southbound Transport %s\n",i,*(GNBParamList.paramarray[i][GNB_TRANSPORT_S_PREFERENCE_IDX].strptr));
|
||||
printf("NRRRC %u: Southbound Transport %s\n",i,*(GNBParamList.paramarray[i][GNB_TRANSPORT_S_PREFERENCE_IDX].strptr));
|
||||
|
||||
if (strcmp(*(GNBParamList.paramarray[i][GNB_TRANSPORT_S_PREFERENCE_IDX].strptr), "local_mac") == 0) {
|
||||
|
||||
@@ -2684,7 +2684,7 @@ int RCconfig_nr_gtpu(void ) {
|
||||
|
||||
paramdef_t GNBSParams[] = GNBSPARAMS_DESC;
|
||||
|
||||
paramdef_t GTPUParams[] = GNBGTPUPARAMS_DESC;
|
||||
paramdef_t GTPUParams[] = GNBGTPUPARAMS_DESC;
|
||||
LOG_I(GTPU,"Configuring GTPu\n");
|
||||
|
||||
/* get number of active eNodeBs */
|
||||
@@ -2976,7 +2976,7 @@ void NRRCConfig(void) {
|
||||
|
||||
/* get global parameters, defined outside any section in the config file */
|
||||
|
||||
printf("Getting GNBSParams\n");
|
||||
LOG_I(GNB_APP, "Getting GNBSParams\n");
|
||||
|
||||
config_get( GNBSParams,sizeof(GNBSParams)/sizeof(paramdef_t),NULL);
|
||||
RC.nb_nr_inst = GNBSParams[GNB_ACTIVE_GNBS_IDX].numelt;
|
||||
|
||||
@@ -122,8 +122,8 @@ typedef enum {
|
||||
{GNB_CONFIG_STRING_CELL_TYPE, NULL, 0, strptr:NULL, defstrval:"CELL_MACRO_GNB", TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_GNB_NAME, NULL, 0, strptr:NULL, defstrval:"OAIgNodeB", TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_TRACKING_AREA_CODE, NULL, 0, strptr:NULL, defstrval:"0", TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_MOBILE_COUNTRY_CODE_OLD, NULL, 0, strptr:NULL, defstrval:NULL, TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_MOBILE_NETWORK_CODE_OLD, NULL, 0, strptr:NULL, defstrval:NULL, TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_MOBILE_COUNTRY_CODE_OLD, NULL, 0, strptr:NULL, defstrval:NULL, TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_MOBILE_NETWORK_CODE_OLD, NULL, 0, strptr:NULL, defstrval:NULL, TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_TRANSPORT_S_PREFERENCE, NULL, 0, strptr:NULL, defstrval:"local_mac", TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_LOCAL_S_IF_NAME, NULL, 0, strptr:NULL, defstrval:"lo", TYPE_STRING, 0}, \
|
||||
{GNB_CONFIG_STRING_LOCAL_S_ADDRESS, NULL, 0, strptr:NULL, defstrval:"127.0.0.1", TYPE_STRING, 0}, \
|
||||
|
||||
@@ -257,7 +257,7 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifname)
|
||||
returnValue=bringInterfaceUp(interfaceName, 1);
|
||||
|
||||
if(!returnValue)
|
||||
LOG_I(OIP,"Interface %s successfuly configured, ip address %s, mask %s broadcast address %s\n",
|
||||
LOG_I(OIP,"Interface %s successfully configured, ip address %s, mask %s broadcast address %s\n",
|
||||
interfaceName, ipAddress, netMask, broadcastAddress);
|
||||
else
|
||||
LOG_E(OIP,"Interface %s couldn't be configured (ip address %s, mask %s broadcast address %s)\n",
|
||||
|
||||
@@ -125,7 +125,7 @@ typedef struct xer_sprint_string_s {
|
||||
size_t string_index;
|
||||
} xer_sprint_string_t;
|
||||
|
||||
//repplace LTE
|
||||
//replace LTE
|
||||
//extern unsigned char NB_eNB_INST;
|
||||
extern unsigned char NB_gNB_INST;
|
||||
extern uint8_t usim_test;
|
||||
|
||||
@@ -32,11 +32,12 @@
|
||||
|
||||
#include "defs.h"
|
||||
#include "rrc_proto.h"
|
||||
#include "common/utils/LOG/log.h"
|
||||
|
||||
int nr_l3_init_ue(void){
|
||||
//LOG_I(RRC, "[MAIN] NR UE MAC initialization...\n");
|
||||
LOG_I(RRC, "[MAIN] NR UE MAC initialization...\n");
|
||||
|
||||
openair_rrc_top_init_ue_nr();
|
||||
openair_rrc_top_init_ue_nr();
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -400,14 +400,14 @@ int8_t nr_rrc_ue_decode_NR_DL_DCCH_Message(
|
||||
case NR_DL_DCCH_MessageType__c1_PR_spare2:
|
||||
case NR_DL_DCCH_MessageType__c1_PR_spare1:
|
||||
default:
|
||||
// not support or unuse
|
||||
// not supported or unused
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case NR_DL_DCCH_MessageType_PR_NOTHING:
|
||||
case NR_DL_DCCH_MessageType_PR_messageClassExtension:
|
||||
default:
|
||||
// not support or unuse
|
||||
// not supported or unused
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ typedef struct Geo {
|
||||
int node_type;
|
||||
int Neighbors; // number of neighboring nodes (distance between the node and its neighbors < 100)
|
||||
int Neighbor[NUMBER_OF_UE_MAX]; // array of its neighbors
|
||||
//relavent to UE only
|
||||
//relevant to UE only
|
||||
unsigned short state;
|
||||
unsigned short rnti;
|
||||
unsigned int connected_eNB;
|
||||
|
||||
Reference in New Issue
Block a user