removed LOG functions from nr_polar_init, they make polartest segfault. polartest to be fixed ...
This commit is contained in:
@@ -48,7 +48,7 @@ static void nr_polar_init(t_nrPolar_params * *polarParams,
|
|||||||
//Parse the list. If the node is already created, return without initialization.
|
//Parse the list. If the node is already created, return without initialization.
|
||||||
while (currentPtr != NULL) {
|
while (currentPtr != NULL) {
|
||||||
//printf("currentPtr->idx %d, (%d,%d)\n",currentPtr->idx,currentPtr->payloadBits,currentPtr->encoderLength);
|
//printf("currentPtr->idx %d, (%d,%d)\n",currentPtr->idx,currentPtr->payloadBits,currentPtr->encoderLength);
|
||||||
LOG_D(PHY,"Looking for index %d\n",(messageType * messageLength * aggregation_prime));
|
//LOG_D(PHY,"Looking for index %d\n",(messageType * messageLength * aggregation_prime));
|
||||||
if (currentPtr->idx == (messageType * messageLength * aggregation_prime)) return;
|
if (currentPtr->idx == (messageType * messageLength * aggregation_prime)) return;
|
||||||
else currentPtr = currentPtr->nextPtr;
|
else currentPtr = currentPtr->nextPtr;
|
||||||
}
|
}
|
||||||
@@ -56,9 +56,9 @@ static void nr_polar_init(t_nrPolar_params * *polarParams,
|
|||||||
// printf("currentPtr %p (polarParams %p)\n",currentPtr,polarParams);
|
// printf("currentPtr %p (polarParams %p)\n",currentPtr,polarParams);
|
||||||
//Else, initialize and add node to the end of the linked list.
|
//Else, initialize and add node to the end of the linked list.
|
||||||
t_nrPolar_params *newPolarInitNode = calloc(sizeof(t_nrPolar_params),1);
|
t_nrPolar_params *newPolarInitNode = calloc(sizeof(t_nrPolar_params),1);
|
||||||
|
|
||||||
if (newPolarInitNode != NULL) {
|
if (newPolarInitNode != NULL) {
|
||||||
LOG_D(PHY,"Setting new polarParams index %d, messageType %d, messageLength %d, aggregation_prime %d\n",(messageType * messageLength * aggregation_prime),messageType,messageLength,aggregation_prime);
|
// LOG_D(PHY,"Setting new polarParams index %d, messageType %d, messageLength %d, aggregation_prime %d\n",(messageType * messageLength * aggregation_prime),messageType,messageLength,aggregation_prime);
|
||||||
newPolarInitNode->idx = (messageType * messageLength * aggregation_prime);
|
newPolarInitNode->idx = (messageType * messageLength * aggregation_prime);
|
||||||
newPolarInitNode->nextPtr = NULL;
|
newPolarInitNode->nextPtr = NULL;
|
||||||
//printf("newPolarInitNode->idx %d, (%d,%d,%d:%d)\n",newPolarInitNode->idx,messageType,messageLength,aggregation_prime,aggregation_level);
|
//printf("newPolarInitNode->idx %d, (%d,%d,%d:%d)\n",newPolarInitNode->idx,messageType,messageLength,aggregation_prime,aggregation_level);
|
||||||
@@ -118,7 +118,7 @@ static void nr_polar_init(t_nrPolar_params * *polarParams,
|
|||||||
newPolarInitNode->payloadBits = messageLength;
|
newPolarInitNode->payloadBits = messageLength;
|
||||||
newPolarInitNode->crcCorrectionBits = NR_POLAR_PUCCH_CRC_ERROR_CORRECTION_BITS;
|
newPolarInitNode->crcCorrectionBits = NR_POLAR_PUCCH_CRC_ERROR_CORRECTION_BITS;
|
||||||
//newPolarInitNode->crc_generator_matrix=crc24c_generator_matrix(newPolarInitNode->payloadBits+newPolarInitNode->crcParityBits);//G_P
|
//newPolarInitNode->crc_generator_matrix=crc24c_generator_matrix(newPolarInitNode->payloadBits+newPolarInitNode->crcParityBits);//G_P
|
||||||
LOG_D(PHY,"New polar node, encoderLength %d, aggregation_level %d\n",newPolarInitNode->encoderLength,aggregation_level);
|
//LOG_D(PHY,"New polar node, encoderLength %d, aggregation_level %d\n",newPolarInitNode->encoderLength,aggregation_level);
|
||||||
} else {
|
} else {
|
||||||
AssertFatal(1 == 0, "[nr_polar_init] Incorrect Message Type(%d)", messageType);
|
AssertFatal(1 == 0, "[nr_polar_init] Incorrect Message Type(%d)", messageType);
|
||||||
}
|
}
|
||||||
@@ -227,7 +227,7 @@ t_nrPolar_params *nr_polar_params (int8_t messageType,
|
|||||||
|
|
||||||
|
|
||||||
while (polarParams != NULL) {
|
while (polarParams != NULL) {
|
||||||
LOG_D(PHY,"nr_polar_params : tag %d (from nr_polar_init %d)\n",tag,polarParams->idx);
|
// LOG_D(PHY,"nr_polar_params : tag %d (from nr_polar_init %d)\n",tag,polarParams->idx);
|
||||||
if (polarParams->idx == tag)
|
if (polarParams->idx == tag)
|
||||||
return polarParams;
|
return polarParams;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user