Commit 21e67cab authored by masayuki.harada's avatar masayuki.harada

Fix pa problem in TM3.

parent 24062296
......@@ -1339,10 +1339,10 @@ int allocate_REs_in_RB(PHY_VARS_eNB* phy_vars_eNB,
//| y1 | = .5 | 0 1 || 0 (-1)^i || 1 -1 || x1 | = .5| (-1)^i(x0 - x1)|
// - - - - - - - - - - -
// Note: Factor .5 is accounted for in amplitude when calling this function
((int16_t *)&txdataF[0][tti_offset])[0]+=((xx0_re+xx1_re)>>1);
((int16_t *)&txdataF[1][tti_offset])[0]+=(s*((xx0_re-xx1_re)>>1));
((int16_t *)&txdataF[0][tti_offset])[1]+=((xx0_im+xx1_im)>>1);
((int16_t *)&txdataF[1][tti_offset])[1]+=(s*((xx0_im-xx1_im)>>1));
((int16_t *)&txdataF[0][tti_offset])[0]+=((xx0_re+xx1_re));
((int16_t *)&txdataF[1][tti_offset])[0]+=(s*((xx0_re-xx1_re)));
((int16_t *)&txdataF[0][tti_offset])[1]+=((xx0_im+xx1_im));
((int16_t *)&txdataF[1][tti_offset])[1]+=(s*((xx0_im-xx1_im)));
/*
LOG_I(PHY,"CDD: xx0 (%d,%d), xx1(%d,%d), s(%d), txF[0] (%d,%d), txF[1] (%d,%d)\n",
xx0_re,xx0_im,xx1_re,xx1_im, s, ((int16_t *)&txdataF[0][tti_offset])[0],((int16_t *)&txdataF[0][tti_offset])[1],
......
......@@ -52,6 +52,9 @@ double computeRhoA_eNB(uint8_t pa,
if(!dl_power_off) //if dl_power_offset is 0, this is for MU-interference, TM5
rho_a_dB-=10*log10(2);
if(n_antenna_port==2)
rho_a_dB-=10*log10(2);
if(n_antenna_port==4) // see TS 36.213 Section 5.2
rho_a_dB+=10*log10(2);
......
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