Skip to content

Commit 87e0c09

Browse files
committed
mac: reverse PMI bits in CSI for test_mode UE
1 parent 2db7d05 commit 87e0c09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/du_high/mac_test_mode_adapter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ class test_cell_adapter : public mac_cell_control_information_handler
172172
payload.resize(CQI_BITLEN);
173173
} else {
174174
payload.resize(CQI_BITLEN + RI_BITLEN + PMI_BITLEN);
175-
packed_bits = packed_bits << (RI_BITLEN + PMI_BITLEN);
176-
packed_bits += (test_ue_cfg.ri - 1) + (test_ue_cfg.pmi << RI_BITLEN);
175+
packed_bits = packed_bits << (RI_BITLEN + PMI_BITLEN); // shift to give space for RI and PMI.
176+
packed_bits += (bit_reverse(test_ue_cfg.pmi) >> (64U - PMI_BITLEN)) << RI_BITLEN;
177+
packed_bits += (test_ue_cfg.ri - 1);
177178
}
178179
payload.from_uint64(packed_bits);
179180
}

0 commit comments

Comments
 (0)