Commit 3db901b3 authored by Cedric Roux's avatar Cedric Roux

Check compatible SIB sizes.

This is to make the previous commit a bit robust. Since we hardcode
the SIB sizes we need to ensure that the value is correct.
Hackish. To be reworked properly later on.
parent e7285feb
......@@ -208,6 +208,13 @@ init_SI(
mac_xface->macphy_exit("[RRC][init_SI] FATAL, no memory for SIB1 allocated");
}
#if FAPI
if (eNB_rrc_inst[ctxt_pP->module_id].carrier[CC_id].sizeof_SIB1 != 15) {
LOG_E(RRC, "sib1 is not 15 bytes but %d, we have to quit\n", eNB_rrc_inst[ctxt_pP->module_id].carrier[CC_id].sizeof_SIB1);
abort();
}
#endif
/*
printf ("after SIB1 init : Nid_cell %d\n", mac_xface->lte_frame_parms->Nid_cell);
printf ("after SIB1 init : frame_type %d,tdd_config %d\n",
......@@ -237,6 +244,12 @@ init_SI(
, configuration
#endif
);
#if FAPI
if (eNB_rrc_inst[ctxt_pP->module_id].carrier[CC_id].sizeof_SIB23 != 30) {
LOG_E(RRC, "sib2/3 is not 30 bytes but %d, we have to quit\n", eNB_rrc_inst[ctxt_pP->module_id].carrier[CC_id].sizeof_SIB23);
abort();
}
#endif
/*
eNB_rrc_inst[ctxt_pP->module_id].sizeof_SIB23 = do_SIB2_AT4(ctxt_pP->module_id,
......
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