File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class test_cell_adapter : public mac_cell_control_information_handler
7979 // It is not the test UE.
8080 continue ;
8181 }
82+ srsran_assert (ue_cfg_req.cells .has_value (), " CRC received for test mode which is not yet created" );
8283
8384 // Force CRC=OK for test UE.
8485 crc.tb_crc_success = true ;
@@ -101,6 +102,7 @@ class test_cell_adapter : public mac_cell_control_information_handler
101102 // It is not the test UE.
102103 continue ;
103104 }
105+ srsran_assert (ue_cfg_req.cells .has_value (), " UCI received for test mode which is not yet created" );
104106
105107 // In case of test UE, set HARQ-Info always equal to ACK.
106108 if (variant_holds_alternative<mac_uci_pdu::pucch_f0_or_f1_type>(uci.pdu )) {
@@ -161,8 +163,7 @@ class test_cell_adapter : public mac_cell_control_information_handler
161163 {
162164 static constexpr size_t CQI_BITLEN = 4 ;
163165
164- if (not ue_cfg_req.cells .has_value () or ue_cfg_req.cells ->empty () or
165- not (*ue_cfg_req.cells )[0 ].serv_cell_cfg .csi_meas_cfg .has_value ()) {
166+ if (ue_cfg_req.cells ->empty () or not (*ue_cfg_req.cells )[0 ].serv_cell_cfg .csi_meas_cfg .has_value ()) {
166167 return ;
167168 }
168169 payload.resize (0 );
You can’t perform that action at this time.
0 commit comments