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

Fix sr detection.

(cherry picked from commit 5482843b9a9dfd25abe74afb04a40c117da3bac4)
parent a3d78407
...@@ -823,9 +823,11 @@ uint32_t calc_pucch_1x_interference(PHY_VARS_eNB *eNB, ...@@ -823,9 +823,11 @@ uint32_t calc_pucch_1x_interference(PHY_VARS_eNB *eNB,
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); 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++;
} //re } //re
calc_cnt++;
} // symbol } // symbol
n0_IQ[0]/=12;
n0_IQ[1]/=12;
interference_power+= (double)(n0_IQ[0]*n0_IQ[0]+n0_IQ[1]*n0_IQ[1]); interference_power+= (double)(n0_IQ[0]*n0_IQ[0]+n0_IQ[1]*n0_IQ[1]);
} // antenna } // antenna
} }
...@@ -1206,7 +1208,7 @@ uint32_t rx_pucch(PHY_VARS_eNB *eNB, ...@@ -1206,7 +1208,7 @@ uint32_t rx_pucch(PHY_VARS_eNB *eNB,
} }
stat += ((stat_re*stat_re) + (stat_im*stat_im)); stat += (stat_re*stat_re);
} //re } //re
} // aa } // aa
......
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