From c71c9de953ea0dd791abc28fe34b5eee26846dee Mon Sep 17 00:00:00 2001 From: Ronak Kanthaliya Date: Fri, 30 Aug 2024 14:26:20 +0530 Subject: [PATCH] Additional BW configurability on telnet server --- common/utils/telnetsrv/telnetsrv_o1.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/common/utils/telnetsrv/telnetsrv_o1.c b/common/utils/telnetsrv/telnetsrv_o1.c index 36cffdf18d..18cd58aa06 100644 --- a/common/utils/telnetsrv/telnetsrv_o1.c +++ b/common/utils/telnetsrv/telnetsrv_o1.c @@ -323,6 +323,24 @@ static int set_bwconfig(char *buf, int debug, telnet_printfunc_t prnt) frequencyInfoUL->scs_SpecificCarrierList.list.array[0]->carrierBandwidth = 51; initialUL->locationAndBandwidth = 13750; get_softmodem_params()->threequarter_fs = 0; + } else if (strcmp(buf, "100") == 0) { + *scc->downlinkConfigCommon->frequencyInfoDL->absoluteFrequencySSB = 646668; + frequencyInfoDL->absoluteFrequencyPointA = 643392; + AssertFatal(frequencyInfoUL->absoluteFrequencyPointA == NULL, "only handle TDD\n"); + frequencyInfoDL->scs_SpecificCarrierList.list.array[0]->carrierBandwidth = 273; + initialDL->locationAndBandwidth = 1099; + frequencyInfoUL->scs_SpecificCarrierList.list.array[0]->carrierBandwidth = 273; + initialUL->locationAndBandwidth = 1099; + get_softmodem_params()->threequarter_fs = 0; + } else if (strcmp(buf, "60") == 0) { + *scc->downlinkConfigCommon->frequencyInfoDL->absoluteFrequencySSB = 621984; + frequencyInfoDL->absoluteFrequencyPointA = 620040; + AssertFatal(frequencyInfoUL->absoluteFrequencyPointA == NULL, "only handle TDD\n"); + frequencyInfoDL->scs_SpecificCarrierList.list.array[0]->carrierBandwidth = 162; + initialDL->locationAndBandwidth = 31624; + frequencyInfoUL->scs_SpecificCarrierList.list.array[0]->carrierBandwidth = 162; + initialUL->locationAndBandwidth = 31624; + get_softmodem_params()->threequarter_fs = 0; } else { ERROR_MSG_RET("unhandled option %s\n", buf); }