memory leaks and corrections in ASN.1 encoding of secondaryCellGroupConfig

This commit is contained in:
Raymond Knopp
2019-09-22 18:32:26 +02:00
parent 5d0e54c86b
commit 287c4c07c6
6 changed files with 68 additions and 38 deletions
+4 -1
View File
@@ -51,7 +51,10 @@ int NRRIV2PRBOFFSET(int locationAndBandwidth,int N_RB) {
}
int PRBalloc_to_locationandbandwidth(int NPRB,int RBstart) {
return(275*(NPRB-1)+RBstart);
if (NPRB < 138)
return(275*(NPRB-1)+RBstart);
else
return(275*(276-NPRB) + (274-RBstart));
}
/// Target code rate tables indexed by Imcs