Take into account BTS supported (M)CS values when retrieving the maximum
Change-Id: I2d3a8bbae2f9887400ce56d2f8303ea30abaecfa
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index 4b5582d..f87681c 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -753,8 +753,8 @@
}
}
}
- } else if (bts->max_mcs_dl) {
- num = bts->max_mcs_dl;
+ } else if (bts->bts->max_mcs_dl()) {
+ num = bts->bts->max_mcs_dl();
} else {
num = 9;
}
@@ -774,8 +774,8 @@
}
}
}
- } else if (bts->max_cs_dl) {
- num = bts->max_cs_dl;
+ } else if (bts->bts->max_cs_dl()) {
+ num = bts->bts->max_cs_dl();
}
if (!num)