Commit e9cfd9c6 authored by Robert Schmidt's avatar Robert Schmidt

from Raymond: correct PRACH idx counter

parent abdf35b8
......@@ -169,15 +169,15 @@ int read_prach_data(ru_info_t *ru, int frame, int slot)
/* convert Network order to host order */
if (ru_conf->compMeth_PRACH == XRAN_COMPMETHOD_NONE) {
if (sym_idx==0) {
for (idx = 0; idx < 576/2; idx++)
for (idx = 0; idx < 139*2; idx++)
{
dst[idx] = ((int16_t)ntohs(src[idx]))>>2;
dst[idx] = ((int16_t)ntohs(src[idx+4]));
}
}
else {
for (idx = 0; idx < 576/2; idx++)
for (idx = 0; idx < 139*2; idx++)
{
dst[idx] += ((int16_t)ntohs(src[idx]))>>2;
dst[idx] += ((int16_t)ntohs(src[idx+4]));
}
}
} else if (ru_conf->compMeth_PRACH == XRAN_COMPMETHOD_BLKFLOAT) {
......@@ -200,10 +200,11 @@ int read_prach_data(ru_info_t *ru, int frame, int slot)
bfp_decom_rsp.data_out = (int16_t*)local_dst;
bfp_decom_rsp.len = 0;
xranlib_decompress_avx512(&bfp_decom_req, &bfp_decom_rsp);
if (sym_idx == 0) //memcpy((void*)dst,(void*)local_dst,576); // 576 is short PRACH 139 -> 144*4
for (idx = 0; idx < (576/2); idx++) dst[idx]=local_dst[idx]>>2;
// note: this is hardwired for 139 point PRACH sequence, kbar=2
if (sym_idx == 0) //
for (idx = 0; idx < (139*2); idx++) dst[idx]=local_dst[idx+4];
else
for (idx = 0; idx < (576/2); idx++) dst[idx]+=(local_dst[idx]>>2);
for (idx = 0; idx < (139*2); idx++) dst[idx]+=(local_dst[idx+4]);
} // COMPMETHOD_BLKFLOAT
} //aa
}// symb_indx
......
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