Commit 1a678c78 authored by Kirill Smelkov's avatar Kirill Smelkov

software/ors-amarisoft: enb: lte: Simplify Carrier Aggregation code

So far CA was setup only for lte case and it is possible to simplify generation
of all pair of cells to be done without extra loop and state.
parent c74fff04
......@@ -163,7 +163,7 @@
// LTE cells
cell_list: [
{%- if do_lte %}
{%- for i, (cell_ref, cell) in enumerate(cell_dict|dictsort) %}
{%- for cell_ref, cell in cell_dict|dictsort %}
{%- set ru_ref = cell.ru_ref %}
{%- set ru = ru_dict[ru_ref] %}
......@@ -184,23 +184,15 @@
{{- handover_config() }}
// Carrier Aggregation
{%- set scell_list = [] %}
{%- for j, l in enumerate(cell_dict) %}
{%- if j != i %}
{%- do scell_list.append([j, l]) %}
{%- endif %}
{%- endfor %}
scell_list: [
{%- for j, l in enumerate(scell_list) %}
{%- if j == 0 -%}
{%- for cell2_ref, cell2 in cell_dict|dictsort %}
{%- if cell2_ref != cell_ref %}
{
{%- else -%}
, {
{%- endif %}
cell_id: {{ cell_dict[l[1]].cell_id }},
cell_id: {{ cell2.cell_id }}, // + {{ cell2_ref }}
cross_carrier_scheduling: false,
}
{%- endfor %}
},
{%- endif %}
{%- endfor %}
],
// tune LTE parameters for the cell
......
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