Fix sr detection.
(cherry picked from commit 5482843b9a9dfd25abe74afb04a40c117da3bac4)
This commit is contained in:
committed by
shono.takafumi
parent
1f54b131b5
commit
7eea980827
@@ -838,9 +838,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
|
||||||
}
|
}
|
||||||
@@ -1187,7 +1189,7 @@ uint32_t rx_pucch(PHY_VARS_eNB *eNB,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
stat += ((stat_re*stat_re) + (stat_im*stat_im));
|
stat += (stat_re*stat_re);
|
||||||
} //re
|
} //re
|
||||||
} // aa
|
} // aa
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user