Correctly fill the cyclic prefix for Tx/Rx endpoints
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user