Skip to content

Commit 2db7d05

Browse files
committed
mac: fix PMI+RI encoding into UCI in case of test mode
1 parent 8edeeac commit 2db7d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/du_high/mac_test_mode_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class test_cell_adapter : public mac_cell_control_information_handler
173173
} else {
174174
payload.resize(CQI_BITLEN + RI_BITLEN + PMI_BITLEN);
175175
packed_bits = packed_bits << (RI_BITLEN + PMI_BITLEN);
176-
packed_bits += ((test_ue_cfg.ri - 1) << PMI_BITLEN) + test_ue_cfg.pmi;
176+
packed_bits += (test_ue_cfg.ri - 1) + (test_ue_cfg.pmi << RI_BITLEN);
177177
}
178178
payload.from_uint64(packed_bits);
179179
}

0 commit comments

Comments
 (0)