Correctly fill the cyclic prefix for Tx/Rx endpoints

This commit is contained in:
Teodora
2025-08-26 15:17:38 +02:00
parent 8bd6e16ad1
commit 9bb15f15b8
3 changed files with 21 additions and 6 deletions
+3
View File
@@ -202,6 +202,9 @@ typedef struct split7_config {
// M-plane related parameters
uint16_t dl_k0[5];
uint16_t ul_k0[5];
uint16_t cp_prefix0;
uint16_t cp_prefix_other;
} split7_config_t;
/*! \brief RF frontend parameters set by application */
+12 -2
View File
@@ -116,10 +116,20 @@ static LY_ERR fill_uplane_ch_common_v2(const uplane_dir_t dir, const xran_mplane
ret = lyd_new_term(*root, NULL, "frame-structure", frame_str, 0, NULL);
VERIFY_SUCCESS(ret == LY_SUCCESS, "[MPLANE] Failed to create \"frame-structure\" node.\n");
ret = lyd_new_term(*root, NULL, "cp-length", "0", 0, NULL);
// EXTENDED not supported
// 3GPP TS 38.211
const char cp_type[] = "NORMAL";
ret = lyd_new_term(*root, NULL, "cp-type", cp_type, 0, NULL);
VERIFY_SUCCESS(ret == LY_SUCCESS, "[MPLANE] Failed to create \"cp-type\" node.\n");
char cp_len[8];
snprintf(cp_len, sizeof(cp_len), "%d", oai->split7.cp_prefix0);
ret = lyd_new_term(*root, NULL, "cp-length", cp_len, 0, NULL);
VERIFY_SUCCESS(ret == LY_SUCCESS, "[MPLANE] Failed to create \"cp-length\" node.\n");
ret = lyd_new_term(*root, NULL, "cp-length-other", "0", 0, NULL);
char cp_len_other[8];
snprintf(cp_len_other, sizeof(cp_len_other), "%d", oai->split7.cp_prefix_other);
ret = lyd_new_term(*root, NULL, "cp-length-other", cp_len_other, 0, NULL);
VERIFY_SUCCESS(ret == LY_SUCCESS, "[MPLANE] Failed to create \"cp-length-other\" node.\n");
char freq_offset[8];