added default sf_mapping for cqi and sr in the enb parser

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent 615bd54fd5
commit 5f4b0b1e0c

@ -352,10 +352,17 @@ int mbsfn_area_info_list_parser::parse(Setting& root)
int field_sf_mapping::parse(libconfig::Setting& root)
{
if (root.exists("subframe")) {
*nof_subframes = root["subframe"].getLength();
for (uint32_t i = 0; i < *nof_subframes; i++) {
sf_mapping[i] = root["subframe"][i];
}
} else {
*nof_subframes = root["period"];
for (uint32_t i = 0; i < *nof_subframes; ++i) {
sf_mapping[i] = i;
}
}
return 0;
}

Loading…
Cancel
Save