Commentaries modifications
This commit is contained in:
@@ -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;
|
||||
BCCH_BCH_Message_t *mib=&carrier->mib ;
|
||||
BCCH_BCH_Message_t *mib = &carrier->mib ;
|
||||
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();
|
||||
|
||||
switch (N_RB_DL) {
|
||||
|
||||
case 6:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n6;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n6;
|
||||
break;
|
||||
case 15:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n15;
|
||||
break;
|
||||
|
||||
case 15:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n15;
|
||||
break;
|
||||
case 25:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n25;
|
||||
break;
|
||||
|
||||
case 25:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n25;
|
||||
break;
|
||||
case 50:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n50;
|
||||
break;
|
||||
|
||||
case 50:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n50;
|
||||
break;
|
||||
case 75:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n75;
|
||||
break;
|
||||
|
||||
case 75:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n75;
|
||||
break;
|
||||
|
||||
case 100:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n100;
|
||||
break;
|
||||
default:
|
||||
AssertFatal(1==0,"Unknown dl_Bandwidth %d\n",N_RB_DL);
|
||||
case 100:
|
||||
mib->message.dl_Bandwidth = MasterInformationBlock__dl_Bandwidth_n100;
|
||||
break;
|
||||
default:
|
||||
AssertFatal(1==0,"Unknown dl_Bandwidth %d\n",N_RB_DL);
|
||||
}
|
||||
|
||||
AssertFatal(phich_Resource <= PHICH_Config__phich_Resource_two,"Illegal phich_Resource\n");
|
||||
mib->message.phich_Config.phich_Resource = phich_Resource;
|
||||
AssertFatal(phich_duration <= PHICH_Config__phich_Duration_extended,"Illegal phich_Duration\n");
|
||||
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)phich_duration,
|
||||
(uint32_t)phich_Resource,
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
\brief Generate configuration for SIB1 (eNB).
|
||||
\brief Generate configuration for MIB (eNB).
|
||||
@param carrier pointer to Carrier information
|
||||
@param N_RB_DL Number of downlink PRBs
|
||||
@param phich_Resource PHICH resoure parameter
|
||||
|
||||
@@ -735,7 +735,7 @@ Paging-v1130-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
|
||||
nonCriticalExtension SEQUENCE {} OPTIONAL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user