Robert Schmidt
c609dd8fcf
Implement common nr_get_mu() in nr_mac_common
...
These functions look up the numerology, and code can be harmonized:
- ssb_index_from_prach()
- find_SSB_and_RO_available()
- schedule_nr_prach()
The next commits also need to look up the numerology from the
UplinkConfigCommon. This provides the common implementation to be used
in follow-up commits.
2024-10-08 14:19:57 +01:00
ndomingues
3083f4f3d1
Common parameters to apply successRAR
2024-10-08 14:19:57 +01:00
ndomingues
c4b51b78d6
Decode msgA_ConfigCommon_r16 from received SIB1 at UE and save it in bwp->msgA_ConfigCommon_r16
2024-10-08 14:19:57 +01:00
ndomingues
9d84ba7fbf
Refactor enum nr_ra_type_t and make it common for both gNB and UE
2024-10-08 14:19:57 +01:00
ndomingues
abb7439b8a
Compute RA 2-Step MsgB_RNTI as specified in 3GPP TS 38.321 Section 5.1.3a
2024-10-08 14:19:57 +01:00
ndomingues
e4655154ee
Add RA 2-Step configuration parameters to SIB1
2024-10-08 14:19:55 +01:00
ndomingues
22a4480c2a
Add configuration file with support for RA 2-Step
2024-10-08 14:15:43 +01:00
francescomani
a54a919bd8
removing UE dependence on gNB CSI FAPI structure and decoupling UE from gNB procedures
2024-10-08 09:46:43 +02:00
Jaroslava Fiedlerova
dbd37dac38
Merge remote-tracking branch 'origin/minor-ue-fixes' into integration_2024_w40b
2024-10-07 16:40:09 +02:00
Laurent THOMAS
8f46b07b22
Lacking RRC check: avoid SEGV if the received packet is not what we believe
2024-10-07 13:39:29 +02:00
Laurent THOMAS
f77f428767
Small optimization L2 to wireshark
...
the code creates a sink to read all traced packets and drop it. but
this works only if we send to a local address and if there is not
another sink (like if we trace both UE and gNB in the same machine).
this sink's purpose is only to prevent to get automatic packets back
from the kernel saying "no listener". So, instead of killing the trace
when we can't create the sink (as done previously), we now just let the
trace in operation.
2024-10-07 13:37:34 +02:00
Bartosz Podrygajlo
01066a3f0d
Fix some sizeof and switch-case errors reported by CodeChecker
...
CodeChecker is a python application that collects reports from static analyzers like
clang-tidy, clangsa, cppcheck.
2024-10-07 09:35:24 +02:00
Jaroslava Fiedlerova
fa6840c05e
Merge remote-tracking branch 'origin/gnb-config-code-refactoring' into integration_2024_w40b
2024-10-04 16:36:23 +02:00
Jaroslava Fiedlerova
7be2a165b3
Merge remote-tracking branch 'origin/f1ap-msg-encdec-tests' into integration_2024_w40b
2024-10-04 07:52:01 +02:00
Robert Schmidt
fa5ca8d7ea
Merge remote-tracking branch 'origin/756-segfault-in-l1_rx_thread' into integration_2024_w40
2024-10-02 17:06:57 +02:00
Robert Schmidt
27d073d4f6
Free CellGroup
2024-10-02 17:04:53 +02:00
Robert Schmidt
ba10db149a
Logs when UE cannot use CCCH
2024-10-02 17:04:53 +02:00
andrewse
2335f5b6cf
Don't call mac_rlc_data_ind when SRB0 already exist for UE.
...
It can happen that L1 gives us a TB that we interpret as receiving UL
MAC TB with LCID "UL_SCH_LCID_CCCH1". This might or might not be
correct, but currently, we observe segfaults when trying to encode the
cellgroup in send_initial_ul_rrc_message() (encode_cellGroupConfig()).
This fix prevents a segfault by not delivering a MAC SDU to RLC if CCCH
is already present. Note that in some cases, this could still happen,
e.g. Resume Request. However, we don't support this message, so ignore
it for the moment.
This fix enables a gNB to operate continuously for extended periods
(days), which is essential for real deployment scenarios.
Closes : #756
2024-10-02 17:04:53 +02:00
Guido Casati
48bb594e30
Cleanup gnb_config.c
2024-10-02 11:39:24 +02:00
Guido Casati
1438dfbd35
Refactored fill_scc_sim
...
* clang formatted
* code cleanup
* improve readability
2024-10-02 11:39:24 +02:00
Guido Casati
8d222bc474
Refactoring of prepare_scc
...
* improved readability
* clang formatted
2024-10-02 11:39:23 +02:00
Guido Casati
a32a8504c9
Use a macro to initialize NR_SetupRelease structs
...
* introduced macro INIT_SETUP_RELEASE to optimize code in gnb_config.c
2024-10-02 11:36:43 +02:00
Guido Casati
56e510b2f2
Use calloc_or_fail in gnb_config.c
2024-10-02 11:36:43 +02:00
Guido Casati
13757cfd28
Cleanup of long-time commented out code in prepare_scc
2024-10-02 11:36:43 +02:00
Bartosz Podrygajlo
fecff5f346
Reset SRS power control adjustment state if p0 or alpha is provided
...
Reset h_b_f_c (SRS power control adjustment state) when SRS-ResourceSet
p0 or alpha is provided by higher layers, accroding to 38.213 7.3.1.
2024-10-01 10:15:40 +02:00
Bartosz Podrygajlo
7359c6b66e
Move h_b_f_c to UL BWP
...
Move h_b_f_c (or SRS power control adjustment state) to UL BWP structure. This is a per
bwp parameter so it makes sense to make its lifetime the same as BWP, even if we dont support
>1 UL BWPs.
2024-10-01 10:15:33 +02:00
Bartosz Podrygajlo
bfc47445ee
SRS tx power with power control state
2024-10-01 10:15:23 +02:00
Jaroslava Fiedlerova
6984c05aad
Merge remote-tracking branch 'origin/fix_nr_pdcp_tick' into integration_2024_w39
2024-09-30 13:14:06 +02:00
Robert Schmidt
51bb3d25cf
Merge remote-tracking branch 'origin/small_fixes_for_5G_NR' into integration_2024_w39
2024-09-29 22:09:26 +02:00
Xin Zhe Khooi
163d058d4a
introduce dedicated nr pdcp tick thread for F1 split
...
Currently, NR PDCP ticks are active only with monolithic gNB, triggered by the MAC scheduler in gNB_scheduler.c.
In F1 split mode, as there is no MAC, there’s no source to advance the NR PDCP timer via "nr_pdcp_wakeup_timer_thread()".
This commit introduces a dedicated thread for NR PDCP ticks in gNB-CU and CU-UP mode.
Without it, packet losses at the F1 uplink would cause indefinite buffering, as t-Reordering won't expire due to the lack of NR PDCP timer ticks.
2024-09-29 15:10:54 +00:00
Raymond Knopp
d2ebc356a0
removed division by num_antenna_ports in PDSCH precoding matrix generation. These matrices are defined for CSI reporting in this way but here we are using them for transmission and this results in an unwanted 10*log10(num_antenna_ports) reduction in transmit power
2024-09-29 10:17:56 +02:00
Jaroslava Fiedlerova
6d09b2179e
Merge remote-tracking branch 'origin/NR_UE_UL_time_alignment' into integration_2024_w39
2024-09-27 17:40:15 +02:00
Guido Casati
3aa9f4c0be
Use F1 gNB-DU Configuration Update Acknowledge lib in stack
2024-09-27 17:39:00 +02:00
Guido Casati
b8ee622f1c
Add test for F1 DU Configuration Update Acknowledge lib
2024-09-27 17:38:55 +02:00
Guido Casati
b91e1b0a12
Add enc/dec lib for F1AP gNB-DU Configuration Update Acknowledge (Interface Management)
2024-09-27 17:38:52 +02:00
Guido Casati
3ce1f0e2c5
Use F1 gNB-CU Configuration Update Acknowledge lib in stack
2024-09-27 17:38:51 +02:00
Guido Casati
c936aabd9a
Add test for CU Configuration Update Acknowledge lib
2024-09-27 17:38:43 +02:00
Guido Casati
3724e84fed
Add enc library for F1 gNB-CU Configuration Update Acknowledge (Interface Management)
2024-09-27 17:38:38 +02:00
Guido Casati
d2863d9693
Refactored f1ap_gnb_cu_configuration_update_acknowledge_t
...
* add transaction_id
* refactored remaining members
2024-09-27 17:38:38 +02:00
Guido Casati
80a05271d6
Use F1AP gNB-CU Configuration Update lib in stack
2024-09-27 17:38:38 +02:00
Guido Casati
3626366228
Add test for F1 gNB-CU Configuration Update enc/dec lib
2024-09-27 17:38:38 +02:00
Guido Casati
8e3d6583a5
Add enc/dec library for F1AP gNB-CU Configuration Update (Interface Management)
2024-09-27 17:38:38 +02:00
Guido Casati
c416c57f92
Simplified F1AP gNB-CU Configuration Update message struct
...
* removed optional IEs, whose encoding/decoding is not done
2024-09-27 17:38:38 +02:00
Guido Casati
3b11764d1d
Minor comments
2024-09-27 17:38:38 +02:00
Guido Casati
07da84ede2
Use F1 gNB-DU Configuration Update lib in stack
2024-09-27 17:38:38 +02:00
Guido Casati
2cc50832d1
Add test for F1AP gNB-DU Configuration Update enc/dec library
2024-09-27 17:38:38 +02:00
Guido Casati
9958e53cb1
Add encoding/decoding library for F1AP gNB-DU Configuration Update (Interface Management)
2024-09-27 17:38:38 +02:00
Guido Casati
df62abca0c
Removed gNB_CU_name from f1ap_gnb_du_configuration_update_t
...
* not defined in 9.2.1.8 of 3GPP TS 38.473
2024-09-27 17:38:38 +02:00
Guido Casati
289fdfe381
Use F1AP Setup Failure enc/dec lib in stack
2024-09-27 17:38:38 +02:00
Guido Casati
6146c470e2
Add test for F1AP Setup Failure enc/dec lib
2024-09-27 17:38:38 +02:00