Commit ec702c88 authored by Louis Adrien Dufrene's avatar Louis Adrien Dufrene

Commentaries modifications

parent c12e3234
...@@ -183,45 +183,45 @@ uint8_t do_MIB(rrc_eNB_carrier_data_t *carrier, uint32_t N_RB_DL, uint32_t phich ...@@ -183,45 +183,45 @@ uint8_t do_MIB(rrc_eNB_carrier_data_t *carrier, uint32_t N_RB_DL, uint32_t phich
{ {
asn_enc_rval_t enc_rval; asn_enc_rval_t enc_rval;
BCCH_BCH_Message_t *mib=&carrier->mib ; BCCH_BCH_Message_t *mib = &carrier->mib ;
uint8_t sfn = (uint8_t)((frame>>2)&0xff); uint8_t sfn = (uint8_t)((frame>>2)&0xff);
uint16_t *spare= calloc(1, sizeof(uint16_t)); uint16_t *spare = calloc(1, sizeof(uint16_t));
if (spare == NULL) abort(); if (spare == NULL) abort();
switch (N_RB_DL) { switch (N_RB_DL) {
case 6:
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n6;
break;
case 6: case 15:
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n6; mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n15;
break; break;
case 15:
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n15;
break;
case 25: case 25:
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n25; mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n25;
break; break;
case 50: case 50:
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n50; mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n50;
break; break;
case 75: case 75:
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n75; mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n75;
break; break;
case 100: case 100:
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n100; mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n100;
break; break;
default: default:
AssertFatal(1==0,"Unknown dl_Bandwidth %d\n",N_RB_DL); AssertFatal(1==0,"Unknown dl_Bandwidth %d\n",N_RB_DL);
} }
AssertFatal(phich_Resource <= PHICH_Config__phich_Resource_two,"Illegal phich_Resource\n"); AssertFatal(phich_Resource <= PHICH_Config__phich_Resource_two,"Illegal phich_Resource\n");
mib->message.phich_Config.phich_Resource = phich_Resource; mib->message.phich_Config.phich_Resource = phich_Resource;
AssertFatal(phich_duration <= PHICH_Config__phich_Duration_extended,"Illegal phich_Duration\n"); AssertFatal(phich_duration <= PHICH_Config__phich_Duration_extended,"Illegal phich_Duration\n");
mib->message.phich_Config.phich_Duration = phich_duration; mib->message.phich_Config.phich_Duration = phich_duration;
LOG_I(RRC,"[MIB] systemBandwidth %x, phich_duration %x, phich_resource %x,sfn %x\n", LOG_I(RRC,"[MIB] systemBandwidth %x, phich_duration %x, phich_resource %x, sfn %x\n",
(uint32_t)mib->message.dl_Bandwidth, (uint32_t)mib->message.dl_Bandwidth,
(uint32_t)phich_duration, (uint32_t)phich_duration,
(uint32_t)phich_Resource, (uint32_t)phich_Resource,
......
...@@ -57,7 +57,7 @@ uint16_t get_adjacent_cell_id(uint8_t Mod_id,uint8_t index); ...@@ -57,7 +57,7 @@ uint16_t get_adjacent_cell_id(uint8_t Mod_id,uint8_t index);
uint8_t get_adjacent_cell_mod_id(uint16_t phyCellId); uint8_t get_adjacent_cell_mod_id(uint16_t phyCellId);
/** /**
\brief Generate configuration for SIB1 (eNB). \brief Generate configuration for MIB (eNB).
@param carrier pointer to Carrier information @param carrier pointer to Carrier information
@param N_RB_DL Number of downlink PRBs @param N_RB_DL Number of downlink PRBs
@param phich_Resource PHICH resoure parameter @param phich_Resource PHICH resoure parameter
......
...@@ -735,7 +735,7 @@ Paging-v1130-IEs ::= SEQUENCE { ...@@ -735,7 +735,7 @@ Paging-v1130-IEs ::= SEQUENCE {
} }
Paging-v1310-IEs ::= SEQUENCE { Paging-v1310-IEs ::= SEQUENCE {
redistributionIndication-r13 ENUMERATED {true} OPTIONAL, --Need ON redistributionIndication-r13 ENUMERATED {true} OPTIONAL, -- Need ON
systemInfoModification-eDRX-r13 ENUMERATED {true} OPTIONAL, -- Need ON systemInfoModification-eDRX-r13 ENUMERATED {true} OPTIONAL, -- Need ON
nonCriticalExtension SEQUENCE {} OPTIONAL nonCriticalExtension SEQUENCE {} OPTIONAL
} }
......
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