Commit 399ad2ec authored by Stone WU's avatar Stone WU Committed by jperaldi

bug #123827: Issue 86 support stop sib1 transmission on eNB according to cell config req from SS

parent 195baf2a
...@@ -334,6 +334,7 @@ typedef struct RrcConfigurationReq_s { ...@@ -334,6 +334,7 @@ typedef struct RrcConfigurationReq_s {
//MIB //MIB
long schedulingInfoSIB1_BR_r13[MAX_NUM_CCs]; long schedulingInfoSIB1_BR_r13[MAX_NUM_CCs];
//SIB1 BR options //SIB1 BR options
BOOLEAN_t stopSib1Transmission[MAX_NUM_CCs];
uint16_t *hyperSFN_r13 [MAX_NUM_CCs]; uint16_t *hyperSFN_r13 [MAX_NUM_CCs];
long *eDRX_Allowed_r13 [MAX_NUM_CCs]; long *eDRX_Allowed_r13 [MAX_NUM_CCs];
BOOLEAN_t cellSelectionInfoCE_r13 [MAX_NUM_CCs]; BOOLEAN_t cellSelectionInfoCE_r13 [MAX_NUM_CCs];
......
...@@ -117,6 +117,11 @@ mac_rrc_data_req( ...@@ -117,6 +117,11 @@ mac_rrc_data_req(
"[eNB %d] MAC Request for SIB1 and SIB1 not initialized\n",Mod_idP); "[eNB %d] MAC Request for SIB1 and SIB1 not initialized\n",Mod_idP);
if ((frameP%2) == 0) { if ((frameP%2) == 0) {
if(RC.rrc[Mod_idP]->carrier[CC_id].sizeof_SIB1 == 0){
//stopSib1Transmission
LOG_D(RRC,"[eNB %d] CC_id:%d Frame %d : stopSib1Transmission\n",Mod_idP,CC_id,frameP);
return 0;
}
memcpy(&buffer_pP[0], memcpy(&buffer_pP[0],
RC.rrc[Mod_idP]->carrier[CC_id].SIB1, RC.rrc[Mod_idP]->carrier[CC_id].SIB1,
RC.rrc[Mod_idP]->carrier[CC_id].sizeof_SIB1); RC.rrc[Mod_idP]->carrier[CC_id].sizeof_SIB1);
......
...@@ -1368,6 +1368,9 @@ uint8_t do_SIB1(rrc_eNB_carrier_data_t *carrier, ...@@ -1368,6 +1368,9 @@ uint8_t do_SIB1(rrc_eNB_carrier_data_t *carrier,
if (enc_rval.encoded==-1) { if (enc_rval.encoded==-1) {
return(-1); return(-1);
} }
if(configuration->stopSib1Transmission[CC_id]) {
return 0;
}
return((enc_rval.encoded+7)/8); return((enc_rval.encoded+7)/8);
} }
......
...@@ -373,7 +373,9 @@ int sys_add_reconfig_cell(struct CellConfigInfo_Type *AddOrReconfigure) ...@@ -373,7 +373,9 @@ int sys_add_reconfig_cell(struct CellConfigInfo_Type *AddOrReconfigure)
#define BCCH_CONFIG AddOrReconfigure->Basic.v.BcchConfig #define BCCH_CONFIG AddOrReconfigure->Basic.v.BcchConfig
if (AddOrReconfigure->Basic.v.BcchConfig.d == true) if (AddOrReconfigure->Basic.v.BcchConfig.d == true)
{ {
LOG_A(ENB_SS, "[SYS] BCCH Config update in Cell config \n"); LOG_A(ENB_SS, "[SYS] BCCH Config update in Cell config \n");
RRC_CONFIGURATION_REQ(msg_p).stopSib1Transmission[cell_index]= (AddOrReconfigure->Basic.v.BcchConfig.v.StopSib1Transmission.d)?1:0;
LOG_A(ENB_SS, "[SYS] stopSib1Transmission for cellIndex(%d) %s\n",cell_index,RRC_CONFIGURATION_REQ(msg_p).stopSib1Transmission[cell_index]?"yes":"no");
if (AddOrReconfigure->Basic.v.BcchConfig.v.BcchInfo.d == true) if (AddOrReconfigure->Basic.v.BcchConfig.v.BcchInfo.d == true)
{ {
if (AddOrReconfigure->Basic.v.BcchConfig.v.BcchInfo.v.MIB.d == true) if (AddOrReconfigure->Basic.v.BcchConfig.v.BcchInfo.v.MIB.d == true)
......
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