Commit a04e7af6 authored by francescomani's avatar francescomani

formatting

parent 06e66330
...@@ -726,12 +726,12 @@ int get_slot_idx_in_period(const int slot, const frame_structure_t *fs) ...@@ -726,12 +726,12 @@ int get_slot_idx_in_period(const int slot, const frame_structure_t *fs)
int get_dmrs_port(int nl, uint16_t dmrs_ports) int get_dmrs_port(int nl, uint16_t dmrs_ports)
{ {
if (dmrs_ports == 0)
if (dmrs_ports == 0) return 0; // dci 1_0 return 0; // dci 1_0
int p = -1; int p = -1;
int found = -1; int found = -1;
for (int i=0; i<12; i++) { // loop over dmrs ports for (int i = 0; i < 12; i++) { // loop over dmrs ports
if((dmrs_ports>>i)&0x01) { // check if current bit is 1 if((dmrs_ports >> i) & 0x01) { // check if current bit is 1
found++; found++;
if (found == nl) { // found antenna port number corresponding to current layer if (found == nl) { // found antenna port number corresponding to current layer
p = i; p = i;
...@@ -739,7 +739,7 @@ int get_dmrs_port(int nl, uint16_t dmrs_ports) ...@@ -739,7 +739,7 @@ int get_dmrs_port(int nl, uint16_t dmrs_ports)
} }
} }
} }
AssertFatal(p>-1,"No dmrs port corresponding to layer %d found\n",nl); AssertFatal(p > -1, "No dmrs port corresponding to layer %d found\n", nl);
return p; return p;
} }
......
This diff is collapsed.
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