Commit e0a0f7ed authored by Younes's avatar Younes

Merge branch 'ru_rau_enhancement' of...

Merge branch 'ru_rau_enhancement' of https://gitlab.eurecom.fr/oai/openairinterface5g into ru_rau_enhancement
parents 785a435f becbaf20
...@@ -1134,14 +1134,15 @@ void do_ru_synch(RU_t *ru) { ...@@ -1134,14 +1134,15 @@ void do_ru_synch(RU_t *ru) {
for (int i=0;i<ru->nb_rx;i++) for (int i=0;i<ru->nb_rx;i++)
rxp[i] = &ru->common.rxdata[i][0]; rxp[i] = &ru->common.rxdata[i][0];
double temp_freq1 = ru->rfdevice.openair0_cfg->rx_freq[0]; /* double temp_freq1 = ru->rfdevice.openair0_cfg->rx_freq[0];
double temp_freq2 = ru->rfdevice.openair0_cfg->tx_freq[0]; double temp_freq2 = ru->rfdevice.openair0_cfg->tx_freq[0];
for (i=0;i<4;i++) { for (i=0;i<4;i++) {
ru->rfdevice.openair0_cfg->rx_freq[i] = ru->rfdevice.openair0_cfg->tx_freq[i]; ru->rfdevice.openair0_cfg->rx_freq[i] = ru->rfdevice.openair0_cfg->tx_freq[i];
ru->rfdevice.openair0_cfg->tx_freq[i] = temp_freq1; ru->rfdevice.openair0_cfg->tx_freq[i] = temp_freq1;
} }
ru->rfdevice.trx_set_freq_func(&ru->rfdevice,ru->rfdevice.openair0_cfg,0); ru->rfdevice.trx_set_freq_func(&ru->rfdevice,ru->rfdevice.openair0_cfg,0);
*/
LOG_I(PHY,"Entering synch routine\n"); LOG_I(PHY,"Entering synch routine\n");
while ((ru->in_synch ==0)&&(!oai_exit)) { while ((ru->in_synch ==0)&&(!oai_exit)) {
...@@ -1181,13 +1182,13 @@ void do_ru_synch(RU_t *ru) { ...@@ -1181,13 +1182,13 @@ void do_ru_synch(RU_t *ru) {
rxp, rxp,
ru->rx_offset, ru->rx_offset,
ru->nb_rx); ru->nb_rx);
for (i=0;i<4;i++) { /*for (i=0;i<4;i++) {
ru->rfdevice.openair0_cfg->rx_freq[i] = temp_freq1; ru->rfdevice.openair0_cfg->rx_freq[i] = temp_freq1;
ru->rfdevice.openair0_cfg->tx_freq[i] = temp_freq2; ru->rfdevice.openair0_cfg->tx_freq[i] = temp_freq2;
} }
ru->rfdevice.trx_set_freq_func(&ru->rfdevice,ru->rfdevice.openair0_cfg,0); ru->rfdevice.trx_set_freq_func(&ru->rfdevice,ru->rfdevice.openair0_cfg,0);
*/
LOG_I(PHY,"Exiting synch routine\n"); LOG_I(PHY,"Exiting synch routine\n");
} }
......
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