Commit 32501677 authored by Florian Kaltenberger's avatar Florian Kaltenberger

p_a and p_b depend only on cell-specific antenna ports

parent 94dc901e
......@@ -82,7 +82,7 @@ void lte_param_init(unsigned char N_tx_port_eNB,
// frame_parms->Bsrs = 0;
// frame_parms->kTC = 0;44
// frame_parms->n_RRC = 0;
frame_parms->mode1_flag = (transmission_mode == 1 || transmission_mode ==7)? 1 : 0;
frame_parms->mode1_flag = (N_tx_port_eNB == 1);
init_frame_parms(frame_parms,osf);
......@@ -115,17 +115,21 @@ void lte_param_init(unsigned char N_tx_port_eNB,
// DL power control init
//if (transmission_mode == 1) {
if (transmission_mode == 1 || transmission_mode ==7) {
if (N_tx_port_eNB == 1) {
eNB->pdsch_config_dedicated->p_a = dB0; // 4 = 0dB
((eNB->frame_parms).pdsch_config_common).p_b = 0;
UE->pdsch_config_dedicated->p_a = dB0; // 4 = 0dB
((UE->frame_parms).pdsch_config_common).p_b = 0;
} else { // rho_a = rhob
} else if (N_tx_port_eNB == 2) { // rho_a = rhob
eNB->pdsch_config_dedicated->p_a = dBm3; // 4 = 0dB
((eNB->frame_parms).pdsch_config_common).p_b = 1;
UE->pdsch_config_dedicated->p_a = dBm3; // 4 = 0dB
((UE->frame_parms).pdsch_config_common).p_b = 1;
}
else {
LOG_E(PHY,"only 1 or 2 cell specific antenna ports supported!\n");
exit(-1);
}
UE->perfect_ce = perfect_ce;
......
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