Commit Graph
4098 Commits
Author SHA1 Message Date
cig 5cfa2cd2f4 Removed OAI exit in mac_rlc_data_req when no RB is present
- this prevents crashes when the function is called for LCIDs that have no RB
- and simply print error message and return 0 when no RB is found
2021-08-04 12:49:42 +02:00
cig 4277d4e1bb Fixes to UE ULSCH PDU generation
- included MAC CE sub-PDUs size in the computation of RLC data to transmit
  this fixes the error with residual mac pdu appearing at gNB side when
  transmitting higher amount of data
- got rid of the nr_generate_ulsch_pdu and moved the relevant UL-SCH MAC PDU
  generation procedure within the nr_ue_get_sdu and nr_ue_get_rach
- reduced memcpy calls and unnecessary memory allocations
- fetching RLC data and SDU size from the mac_rlc_data_req, removed the call
  to mac_rlc_get_buffer_occupancy_ind
- introduced a new function to generate the MAC CEs sub-PDUs
- removed unnecessary function input parameters
- minor fixes and cleanup
- enhanced logging
2021-08-04 12:49:42 +02:00
Raphael Defosseux a9ffbc6b07 Merge remote-tracking branch 'origin/hack-bch-no-sched-sf-0' into develop 2021-08-02 10:00:14 +02:00
Raphael Defosseux 599287b632 Merge remote-tracking branch 'origin/fix-retransmission-rbg' into develop 2021-08-02 09:59:46 +02:00
hardy c93a9497db Merge remote-tracking branch 'origin/develop-NSA_SA_fixes' into integration_2021_wk30_b 2021-07-24 17:56:38 +02:00
rmagueta 165b406839 Avoid segmentation fault for LTE 2021-07-23 13:12:35 +01:00
hardy fad5fbda34 Merge remote-tracking branch 'origin/NR_CSIRS_tomerge' into integration_2021_wk30 2021-07-23 09:18:33 +02:00
luis_pereira87 67bccd8c80 Fix handling failure of CFRA procedure for OAI UE 2021-07-22 11:36:52 +01:00
luis_pereira87 a038df0459 Discard Random Access when max number of users is achieved 2021-07-22 10:55:46 +01:00
luis_pereira87 95372bd2da Fix RNTI selection for CFRA 2021-07-22 10:51:49 +01:00
francescomani 618e33aca0 adding check for ul failure in nr_csi_meas_reporting 2021-07-22 09:16:10 +02:00
Cedric Roux 4a2c0b1eff bugfix: fix allocation of RBGs for retransmission
When there is a retransmission, we want to use the same number of RBs.

The RBs are allocated by groups (RBGs).

In some cases (like a cell with 25 PRBs), the last RBG contains less RBs.
So in case of a retransmission, if this last RBG was used before we need
to reuse it to have the same number of RBs. If not, we will use more RBs
for the retransmission than the previous transmission.

In an experiment with two UEs (quectel modules) it was seen that when a
retransmission happens with a different number of RBs then the UE is not
happy at all, leading to way more NACKs in the harq processes than should
happen (actually the first NACK was not a NACK at all, but the eNB did
interpret it as a NACK; so the next transmission should simply be discarded
by the UE that successfully received the first transmission; instead the UE
fails to decode the data and sends a NACK, a real one this time).

Maybe it's not the correct solution, but it improve things, there are
much less NACKs.
2021-07-21 23:22:48 +02:00
Cedric Roux f6e0321860 hack: do not use BCH RBs for DL scheduling in subframe 0
The problem is that when using those RBs with MCS 28 we may exceed the
code rate 0.93 and according to 36.213 7.1.7 the UE may skip decoding
PDSCH entirely in this case.

This is a hack. The real solution is to check that the code rate is below
0.93 for each scheduling decision and, I don't know, reduce the MCS if the
code rate is above, so that in the end it is below. That means that we need
a proper resource grid for the configuration of the eNB and this is not an
easy thing (at least from my point of view) given all the possible
configurations for the eNB, so I prefer not to do it rather than do something
incorrect, thus this hack.

The problem of this hack is that we won't use all the available RBs for
scheduling, potentially reducing the maximum throughput achievable.

To be fixed properly at some time, by someone who understands fully the
resource grid and all the possible combinations (fdd/tdd, number of
antennas, whatever else).
2021-07-21 23:22:02 +02:00
francescomani bff2251242 Merge remote-tracking branch 'origin/develop' into NR_CSIRS_tomerge 2021-07-20 07:03:24 +02:00
rmagueta 3ea6d6f878 Merge remote-tracking branch 'origin/develop' into develop-NR_SA_F1AP_5GRECORDS-abs
# Conflicts:
#	openair1/PHY/INIT/nr_init_ru.c
2021-07-19 13:51:38 +01:00
hardy 042e45efa7 Merge remote-tracking branch 'origin/nr-dl-mimo-2layer' into integration_2021_wk28_b 2021-07-18 10:37:36 +02:00
hardy 3c64c73dd1 Merge remote-tracking branch 'origin/NR_phytest_bugfixes' into integration_2021_wk28_b 2021-07-18 10:37:08 +02:00
luis_pereira87 9c010e3056 Apply patch for gNB ulsch retransmission scheduler 2021-07-17 22:25:07 +01:00
rmagueta a2450bb4b7 Protect some xer_fprints by an if 2021-07-14 15:30:07 +01:00
francescomani 88cec72b02 avoid segmentation fault in scheduling csirs for sa 2021-07-14 16:15:47 +02:00
francescomani b72f2a6a8e Merge remote-tracking branch 'origin/develop' into NR_CSIRS_tomerge 2021-07-14 13:54:02 +02:00
Thomas Schlichter 44d57829cc NR_UE: revert changes in nr_ue_procedures.c
I have to revert this to be consistent with the OAI gNB.
But I think it is wrong to take the BWPSize from scc or scc_SIB, and the BWPStart from DLbwp[0].
2021-07-13 20:44:39 +02:00
rmagueta 7758e8acfc Revert min_rb to 5 and avoid mixed slots for initialUplinkBWP 2021-07-13 18:48:38 +01:00
rmagueta b98836940a Change log levels 2021-07-13 12:00:25 +01:00
rmagueta 4f873e9a26 Fix IP packet received at gNB, to be sent to TUN interface 2021-07-12 15:44:16 +01:00
rmagueta 389a8e58be Revert security_mode for phy-test 2021-07-10 02:17:36 +01:00
rmagueta ba122c9cb4 Fix max_association_period for FDD 2021-07-09 15:59:19 +01:00
rmagueta 3c9ca36651 Fix fill slot bitmap for FR2 2021-07-09 13:22:30 +01:00
Roberto Louro Magueta b19d396828 Revert "Fix is_xlsch_in_slot"
This reverts commit 7821a12998
2021-07-09 11:34:01 +00:00
rmagueta 7821a12998 Fix is_xlsch_in_slot 2021-07-08 19:57:03 +01:00
rmagueta 39670007be Merge remote-tracking branch 'origin/develop' into develop-NR_SA_F1AP_5GRECORDS-abs 2021-07-08 17:43:43 +01:00
luispereira87 38e3517029 Fix build warning 2021-07-07 19:11:33 +01:00
luispereira87 8743f58d23 Improve schedule msg3 and fix tda for mixed slots 2021-07-07 18:25:31 +01:00
luispereira87 65bf29eecc Fix uplink retransmission information 2021-07-07 16:34:29 +01:00
Luis Pereira 214b44885d Revert "Temporary fix: avoid mixed slots in initialUplinkBWP"
This reverts commit 06a8ec9893
2021-07-07 15:27:38 +00:00
luispereira87 06a8ec9893 Temporary fix: avoid mixed slots in initialUplinkBWP 2021-07-06 20:33:18 +01:00
luis_pereira87 2cea4c4c87 Compute TBS and rbSize considering always MAC long header 2021-07-06 10:57:32 +01:00
Luis Pereira 6cc98eba85 Revert "Fix gNB downlink MAC short/long header accordingly with RLC buffer size"
This reverts commit 081a287929
2021-07-06 09:44:37 +00:00
Luis Pereira 5da8195d23 Revert "Improved fix gNB downlink MAC short/long header accordingly with RLC buffer size"
This reverts commit 88d7ad11a2
2021-07-06 09:44:03 +00:00
hardy cc89d3606b Merge remote-tracking branch 'origin/x2_handle_sctp_shutdown' into integration_2021_wk27 2021-07-06 10:49:30 +02:00
Thomas Schlichter c3482e376d Merge remote-tracking branch 'origin/develop' into nr-dl-mimo-2layer 2021-07-05 16:25:26 +02:00
luis_pereira87 88d7ad11a2 Improved fix gNB downlink MAC short/long header accordingly with RLC buffer size 2021-07-03 08:54:16 +01:00
luis_pereira87 081a287929 Fix gNB downlink MAC short/long header accordingly with RLC buffer size 2021-07-02 21:36:02 +01:00
Laurent THOMAS ee0e7c97a3 merge develop 2021-07-02 12:22:42 +02:00
Laurent THOMAS 670352d548 add array size fix 2021-07-02 12:15:59 +02:00
francescomani c9c416cb01 Merge remote-tracking branch 'origin/develop' into NR_gNB_initial_MIB_fix 2021-07-02 11:43:37 +02:00
francescomani 38ad4bbfbc Merge remote-tracking branch 'origin/develop' into NR_CSIRS_tomerge 2021-07-01 15:23:28 +02:00
rmagueta 282fe1063e Fix build 2021-06-30 18:48:45 +01:00
rmagueta 160cb0b930 Merge remote-tracking branch 'origin/NR_SA_F1AP_5GRECORDS' into develop-NR_SA_F1AP_5GRECORDS-lts2
# Conflicts:
#	cmake_targets/CMakeLists.txt
#	cmake_targets/build_oai
#	cmake_targets/tools/build_helper
#	executables/nr-gnb.c
#	openair1/PHY/INIT/nr_init_ru.c
#	openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
#	openair1/PHY/NR_TRANSPORT/nr_ulsch.c
#	openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
#	openair1/PHY/NR_UE_TRANSPORT/nr_prach.c
#	openair1/SCHED_NR/phy_procedures_nr_gNB.c
#	openair1/SCHED_NR_UE/pucch_uci_ue_nr.c
#	openair2/F1AP/f1ap_du_rrc_message_transfer.c
#	openair2/F1AP/f1ap_du_rrc_message_transfer.h
#	openair2/F1AP/f1ap_du_task.c
#	openair2/GNB_APP/gnb_app.c
#	openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
#	openair2/LAYER2/NR_MAC_gNB/config.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
#	openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
#	openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
#	openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
#	openair2/RRC/LTE/rrc_eNB_GTPV1U.c
#	openair2/RRC/NR/L2_nr_interface.c
#	openair2/RRC/NR/MESSAGES/asn1_msg.c
#	openair2/RRC/NR/rrc_gNB.c
#	openair2/RRC/NR/rrc_gNB_NGAP.c
#	openair2/RRC/NR_UE/rrc_UE.c
#	openair3/NAS/NR_UE/nr_nas_msg_sim.c
#	openair3/ocp-gtpu/gtp_itf.cpp
#	targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
2021-06-30 17:00:30 +01:00
matzakos 408d05c682 Configure PDCP entity for UE DRB with no integrity and ciphering to comply with configuration at gNB
-To be revisited if we want to enable integrity and ciphering for DRBs
2021-06-27 10:34:37 +02:00