Commit e1210dde authored by Chun-Yeow's avatar Chun-Yeow

lte-softmode: fix the UL freq setting for UE to support FDD

UE for FDD always use the UL freq same as DL freq.
Fix this by introducing the flag '-T'.

In case of UL freq setting for FDD, use the following:
./lte-softmodem -U -C875000000 -T-45000000
(offset of UL freq is -45MHz)

./lte-softmodem -U -C875000000 -T45000000
(offset of UL freq is +45MHz)
Signed-off-by: Chun-Yeow's avatarChun-Yeow Yeoh <yeohchunyeow@gmail.com>
parent 70cbbf4c
......@@ -2033,7 +2033,7 @@ static void get_options (int argc, char **argv)
{NULL, 0, NULL, 0}
};
while ((c = getopt_long (argc, argv, "C:dK:g:F:G:hqO:m:SUVRM:r:P:Ws:t:x:",long_options,NULL)) != -1) {
while ((c = getopt_long (argc, argv, "C:dK:g:F:G:hqO:m:SUVRM:r:P:Ws:t:x:T:",long_options,NULL)) != -1) {
switch (c) {
case LONG_OPTION_MAXPOWER:
tx_max_power[0]=atoi(optarg);
......@@ -2111,6 +2111,16 @@ static void get_options (int argc, char **argv)
break;
case 'T':
for (CC_id=0; CC_id<MAX_NUM_CCs; CC_id++) {
uplink_frequency_offset[CC_id][0] = atof(optarg);
uplink_frequency_offset[CC_id][1] = uplink_frequency_offset[CC_id][0];
uplink_frequency_offset[CC_id][2] = uplink_frequency_offset[CC_id][0];
uplink_frequency_offset[CC_id][3] = uplink_frequency_offset[CC_id][0];
printf("Uplink for CC_id %d frequency offset set to %d\n", CC_id, uplink_frequency_offset[CC_id][0]);
}
break;
case 'd':
#ifdef XFORMS
do_forms=1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment