Commit e270fb39 authored by masayuki.harada's avatar masayuki.harada Committed by Haruki NAOI

Fix compile error.

(cherry picked from commit b89b36ea9693b4053e3410bda1cc58e48266ef44)
parent 4624f3ff
...@@ -831,7 +831,7 @@ uint32_t calc_pucch_1x_interference(PHY_VARS_eNB *eNB, ...@@ -831,7 +831,7 @@ uint32_t calc_pucch_1x_interference(PHY_VARS_eNB *eNB,
re_offset = 0; re_offset = 0;
rxcomp[aa][j] = (int16_t)((rxptr[re_offset<<1]*(int32_t)zptr[j])>>15) - ((rxptr[1+(re_offset<<1)]*(int32_t)zptr[1+j])>>15); rxcomp[aa][j] = (int16_t)((rxptr[re_offset<<1]*(int32_t)zptr[j])>>15) - ((rxptr[1+(re_offset<<1)]*(int32_t)zptr[1+j])>>15);
rxcomp[aa][1+j] = (int16_t)((rxptr[re_offset<<1]*(int32_t)zptr[1+j])>>15) + ((rxptr[1+(re_offset<<1)]*(int32_t)zptr[j])>>15);+ n0_IQ[0]+=rxcomp[aa][j]; rxcomp[aa][1+j] = (int16_t)((rxptr[re_offset<<1]*(int32_t)zptr[1+j])>>15) + ((rxptr[1+(re_offset<<1)]*(int32_t)zptr[j])>>15);
n0_IQ[0]+=rxcomp[aa][j]; n0_IQ[0]+=rxcomp[aa][j];
n0_IQ[1]+=rxcomp[aa][1+j]; n0_IQ[1]+=rxcomp[aa][1+j];
calc_cnt++; calc_cnt++;
...@@ -841,8 +841,8 @@ uint32_t calc_pucch_1x_interference(PHY_VARS_eNB *eNB, ...@@ -841,8 +841,8 @@ uint32_t calc_pucch_1x_interference(PHY_VARS_eNB *eNB,
} // antenna } // antenna
} }
interference_power /= calc_cnt; interference_power /= calc_cnt;
eNB->measurements.n0_pucch_dB = dB_fixed_x10((int)(interference_power/calc_cnt))/10; eNB->measurements.n0_pucch_dB = dB_fixed_x10((int)interference_power)/10;
LOG_D(PHY,"estimate pucch noise %d %d %d\n",interference_power,calc_cnt,eNB->measurements.n0_pucch_dB); LOG_D(PHY,"estimate pucch noise %lf %d %d\n",interference_power,calc_cnt,eNB->measurements.n0_pucch_dB);
return 0; return 0;
} }
......
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