Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
fefa0bfe
Commit
fefa0bfe
authored
Jan 30, 2023
by
Weskley Vinicius Fernandes Mauricio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementing bands greater than 64 in the code, feature #603
parent
fda5c4ae
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
79 additions
and
17 deletions
+79
-17
ci-scripts/xml_files/container_4g_l2sim_proxy.xml
ci-scripts/xml_files/container_4g_l2sim_proxy.xml
+1
-1
ci-scripts/xml_files/container_l2sim_proxy.xml
ci-scripts/xml_files/container_l2sim_proxy.xml
+1
-1
nfapi/open-nFAPI/nfapi/public_inc/nfapi_interface.h
nfapi/open-nFAPI/nfapi/public_inc/nfapi_interface.h
+1
-1
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
+4
-4
openair2/ENB_APP/RRC_config_tools.c
openair2/ENB_APP/RRC_config_tools.c
+6
-0
openair2/LAYER2/MAC/config.c
openair2/LAYER2/MAC/config.c
+17
-7
openair2/RRC/LTE/MESSAGES/asn1_msg.c
openair2/RRC/LTE/MESSAGES/asn1_msg.c
+37
-2
openair2/RRC/LTE/rrc_common.c
openair2/RRC/LTE/rrc_common.c
+11
-0
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+1
-1
No files found.
ci-scripts/xml_files/container_4g_l2sim_proxy.xml
View file @
fefa0bfe
...
...
@@ -36,7 +36,7 @@
<eNB_instance>
1
</eNB_instance>
<eNB_serverId>
1
</eNB_serverId>
<forced_workspace_cleanup>
True
</forced_workspace_cleanup>
<proxy_commit>
a
6169d8
</proxy_commit>
<proxy_commit>
a
2fa216
</proxy_commit>
</testCase>
</testCaseList>
ci-scripts/xml_files/container_l2sim_proxy.xml
View file @
fefa0bfe
...
...
@@ -36,7 +36,7 @@
<eNB_instance>
1
</eNB_instance>
<eNB_serverId>
1
</eNB_serverId>
<forced_workspace_cleanup>
True
</forced_workspace_cleanup>
<proxy_commit>
a
6169d8
</proxy_commit>
<proxy_commit>
a
2fa216
</proxy_commit>
</testCase>
</testCaseList>
nfapi/open-nFAPI/nfapi/public_inc/nfapi_interface.h
View file @
fefa0bfe
...
...
@@ -1085,7 +1085,7 @@ typedef struct
// These TLVs are used by the VNF to configure the RF in the PNF
nfapi_uint16_tlv_t
max_transmit_power
;
nfapi_uint
16
_tlv_t
earfcn
;
nfapi_uint
32
_tlv_t
earfcn
;
nfapi_nmm_frequency_bands_t
nmm_gsm_frequency_bands
;
nfapi_nmm_frequency_bands_t
nmm_umts_frequency_bands
;
...
...
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
View file @
fefa0bfe
...
...
@@ -505,7 +505,7 @@ static uint8_t pack_param_response(void *msg, uint8_t **ppWritePackedMsg, uint8_
pack_tlv
(
NFAPI_NFAPI_TIMING_INFO_MODE_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_mode
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_TIMING_INFO_PERIOD_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_period
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_MAXIMUM_TRANSMIT_POWER_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
max_transmit_power
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_EARFCN_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
earfcn
),
ppWritePackedMsg
,
end
,
&
pack_uint
16
_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_EARFCN_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
earfcn
),
ppWritePackedMsg
,
end
,
&
pack_uint
32
_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_GSM_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_gsm_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_UMTS_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_umts_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_LTE_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_lte_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
...
...
@@ -693,7 +693,7 @@ static uint8_t pack_config_request(void *msg, uint8_t **ppWritePackedMsg, uint8_
pack_tlv
(
NFAPI_NFAPI_TIMING_INFO_MODE_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_mode
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_TIMING_INFO_PERIOD_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_period
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_MAXIMUM_TRANSMIT_POWER_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
max_transmit_power
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_EARFCN_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
earfcn
),
ppWritePackedMsg
,
end
,
&
pack_uint
16
_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_EARFCN_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
earfcn
),
ppWritePackedMsg
,
end
,
&
pack_uint
32
_tlv_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_GSM_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_gsm_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_UMTS_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_umts_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_LTE_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_lte_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
...
...
@@ -1492,7 +1492,7 @@ static uint8_t unpack_param_response(uint8_t **ppReadPackedMsg, uint8_t *end, vo
{
NFAPI_NFAPI_TIMING_INFO_MODE_TAG
,
&
pNfapiMsg
->
nfapi_config
.
timing_info_mode
,
&
unpack_uint8_tlv_value
},
{
NFAPI_NFAPI_TIMING_INFO_PERIOD_TAG
,
&
pNfapiMsg
->
nfapi_config
.
timing_info_period
,
&
unpack_uint8_tlv_value
},
{
NFAPI_NFAPI_MAXIMUM_TRANSMIT_POWER_TAG
,
&
pNfapiMsg
->
nfapi_config
.
max_transmit_power
,
&
unpack_uint16_tlv_value
},
{
NFAPI_NFAPI_EARFCN_TAG
,
&
pNfapiMsg
->
nfapi_config
.
earfcn
,
&
unpack_uint
16
_tlv_value
},
{
NFAPI_NFAPI_EARFCN_TAG
,
&
pNfapiMsg
->
nfapi_config
.
earfcn
,
&
unpack_uint
32
_tlv_value
},
{
NFAPI_NFAPI_NMM_GSM_FREQUENCY_BANDS_TAG
,
&
pNfapiMsg
->
nfapi_config
.
nmm_gsm_frequency_bands
,
&
unpack_nmm_frequency_bands_value
},
{
NFAPI_NFAPI_NMM_UMTS_FREQUENCY_BANDS_TAG
,
&
pNfapiMsg
->
nfapi_config
.
nmm_umts_frequency_bands
,
&
unpack_nmm_frequency_bands_value
},
{
NFAPI_NFAPI_NMM_LTE_FREQUENCY_BANDS_TAG
,
&
pNfapiMsg
->
nfapi_config
.
nmm_lte_frequency_bands
,
&
unpack_nmm_frequency_bands_value
},
...
...
@@ -1705,7 +1705,7 @@ static uint8_t unpack_config_request(uint8_t **ppReadPackedMsg, uint8_t *end, vo
{
NFAPI_NFAPI_TIMING_INFO_MODE_TAG
,
&
pNfapiMsg
->
nfapi_config
.
timing_info_mode
,
&
unpack_uint8_tlv_value
},
{
NFAPI_NFAPI_TIMING_INFO_PERIOD_TAG
,
&
pNfapiMsg
->
nfapi_config
.
timing_info_period
,
&
unpack_uint8_tlv_value
},
{
NFAPI_NFAPI_MAXIMUM_TRANSMIT_POWER_TAG
,
&
pNfapiMsg
->
nfapi_config
.
max_transmit_power
,
&
unpack_uint16_tlv_value
},
{
NFAPI_NFAPI_EARFCN_TAG
,
&
pNfapiMsg
->
nfapi_config
.
earfcn
,
&
unpack_uint
16
_tlv_value
},
{
NFAPI_NFAPI_EARFCN_TAG
,
&
pNfapiMsg
->
nfapi_config
.
earfcn
,
&
unpack_uint
32
_tlv_value
},
{
NFAPI_NFAPI_NMM_GSM_FREQUENCY_BANDS_TAG
,
&
pNfapiMsg
->
nfapi_config
.
nmm_gsm_frequency_bands
,
&
unpack_nmm_frequency_bands_value
},
{
NFAPI_NFAPI_NMM_UMTS_FREQUENCY_BANDS_TAG
,
&
pNfapiMsg
->
nfapi_config
.
nmm_umts_frequency_bands
,
&
unpack_nmm_frequency_bands_value
},
{
NFAPI_NFAPI_NMM_LTE_FREQUENCY_BANDS_TAG
,
&
pNfapiMsg
->
nfapi_config
.
nmm_lte_frequency_bands
,
&
unpack_nmm_frequency_bands_value
},
...
...
openair2/ENB_APP/RRC_config_tools.c
View file @
fefa0bfe
...
...
@@ -73,6 +73,12 @@ static const eutra_band_t eutra_bands[] = {
{
42
,
3400
*
MHz
,
3600
*
MHz
,
3400
*
MHz
,
3600
*
MHz
,
TDD
},
{
43
,
3600
*
MHz
,
3800
*
MHz
,
3600
*
MHz
,
3800
*
MHz
,
TDD
},
{
44
,
703
*
MHz
,
803
*
MHz
,
703
*
MHz
,
803
*
MHz
,
TDD
},
// ...
{
65
,
1920
*
MHz
,
2010
*
MHz
,
2110
*
MHz
,
2200
*
MHz
,
FDD
},
{
66
,
1710
*
MHz
,
1780
*
MHz
,
2110
*
MHz
,
2200
*
MHz
,
FDD
},
{
71
,
663
*
MHz
,
698
*
MHz
,
617
*
MHz
,
652
*
MHz
,
FDD
},
{
72
,
451
*
MHz
,
456
*
MHz
,
461
*
MHz
,
466
*
MHz
,
FDD
},
{
73
,
450
*
MHz
,
455
*
MHz
,
460
*
MHz
,
465
*
MHz
,
FDD
},
};
...
...
openair2/LAYER2/MAC/config.c
View file @
fefa0bfe
...
...
@@ -119,10 +119,14 @@ static const eutra_bandentry_t eutra_bandtable[] = {
{
44
,
7030
,
8030
,
7030
,
8030
,
455900
},
{
45
,
14470
,
14670
,
14470
,
14670
,
465900
},
{
46
,
51500
,
59250
,
51500
,
59250
,
467900
},
{
64
,
0
,
0
,
0
,
0
,
60140
},
//reserved
{
65
,
19200
,
20100
,
21100
,
22000
,
655360
},
{
66
,
17100
,
18000
,
21100
,
22000
,
664360
},
{
67
,
0
,
0
,
7380
,
7580
,
67336
},
{
68
,
6980
,
7280
,
7530
,
7830
,
67536
}
{
68
,
6980
,
7280
,
7530
,
7830
,
67536
},
{
71
,
6630
,
6980
,
6170
,
6520
,
68586
},
{
72
,
4510
,
4560
,
4610
,
4660
,
68936
},
{
73
,
4500
,
4550
,
4600
,
4650
,
68986
}
};
...
...
@@ -132,11 +136,12 @@ uint32_t to_earfcn(int eutra_bandP, uint32_t dl_CarrierFreq, uint32_t bw) {
uint32_t
dl_CarrierFreq_by_100k
=
dl_CarrierFreq
/
100000
;
int
bw_by_100
=
bw
/
100
;
int
i
;
AssertFatal
(
eutra_bandP
<
69
,
"eutra_band %d > 68
\n
"
,
eutra_bandP
);
AssertFatal
(
eutra_bandP
<
74
,
"eutra_band %d > 74
\n
"
,
eutra_bandP
);
for
(
i
=
0
;
i
<
BANDTABLE_SIZE
&&
eutra_bandtable
[
i
].
band
!=
eutra_bandP
;
i
++
);
AssertFatal
(
i
<
BANDTABLE_SIZE
,
"i %d >= BANDTABLE_SIZE %ld
\n
"
,
i
,
BANDTABLE_SIZE
);
AssertFatal
(
eutra_bandP
!=
64
,
"LTE b64 is a reserved band"
);
AssertFatal
(
dl_CarrierFreq_by_100k
>=
eutra_bandtable
[
i
].
dl_min
,
"Band %d, bw %u : DL carrier frequency %u Hz < %u
\n
"
,
eutra_bandP
,
bw
,
dl_CarrierFreq
,
...
...
@@ -148,17 +153,19 @@ uint32_t to_earfcn(int eutra_bandP, uint32_t dl_CarrierFreq, uint32_t bw) {
eutra_bandtable
[
i
].
dl_max
-
bw_by_100
);
return
(
dl_CarrierFreq_by_100k
-
eutra_bandtable
[
i
].
dl_min
+
(
eutra_bandtable
[
i
].
N_OFFs_DL
/
10
));
}
}
uint32_t
to_earfcn_DL
(
int
eutra_bandP
,
long
long
int
dl_CarrierFreq
,
uint32_t
bw
)
{
uint32_t
dl_CarrierFreq_by_100k
=
dl_CarrierFreq
/
100000
;
int
bw_by_100
=
bw
/
100
;
int
i
;
AssertFatal
(
eutra_bandP
<
69
,
"eutra_band %d > 68
\n
"
,
eutra_bandP
);
AssertFatal
(
eutra_bandP
<
74
,
"eutra_band %d > 74
\n
"
,
eutra_bandP
);
for
(
i
=
0
;
i
<
BANDTABLE_SIZE
&&
eutra_bandtable
[
i
].
band
!=
eutra_bandP
;
i
++
);
AssertFatal
(
i
<
BANDTABLE_SIZE
,
"i = %d , it will trigger out-of-bounds read.
\n
"
,
i
);
AssertFatal
(
eutra_bandP
!=
64
,
"LTE b64 is a reserved band"
);
AssertFatal
(
dl_CarrierFreq_by_100k
>=
eutra_bandtable
[
i
].
dl_min
,
"Band %d, bw %u : DL carrier frequency %lld Hz < %u
\n
"
,
eutra_bandP
,
bw
,
dl_CarrierFreq
,
...
...
@@ -170,17 +177,19 @@ uint32_t to_earfcn_DL(int eutra_bandP, long long int dl_CarrierFreq, uint32_t bw
eutra_bandtable
[
i
].
dl_max
-
bw_by_100
);
return
(
dl_CarrierFreq_by_100k
-
eutra_bandtable
[
i
].
dl_min
+
(
eutra_bandtable
[
i
].
N_OFFs_DL
/
10
));
}
}
uint32_t
to_earfcn_UL
(
int
eutra_bandP
,
long
long
int
ul_CarrierFreq
,
uint32_t
bw
)
{
uint32_t
ul_CarrierFreq_by_100k
=
ul_CarrierFreq
/
100000
;
int
bw_by_100
=
bw
/
100
;
int
i
;
AssertFatal
(
eutra_bandP
<
69
,
"eutra_band %d > 68
\n
"
,
eutra_bandP
);
AssertFatal
(
eutra_bandP
<
74
,
"eutra_band %d > 74
\n
"
,
eutra_bandP
);
for
(
i
=
0
;
i
<
BANDTABLE_SIZE
&&
eutra_bandtable
[
i
].
band
!=
eutra_bandP
;
i
++
);
AssertFatal
(
i
<
BANDTABLE_SIZE
,
"i = %d , it will trigger out-of-bounds read.
\n
"
,
i
);
AssertFatal
(
eutra_bandP
!=
64
,
"LTE b64 is a reserved band"
);
AssertFatal
(
ul_CarrierFreq_by_100k
>=
eutra_bandtable
[
i
].
ul_min
,
"Band %d, bw %u : UL carrier frequency %lld Hz < %u
\n
"
,
eutra_bandP
,
bw
,
ul_CarrierFreq
,
...
...
@@ -196,11 +205,12 @@ uint32_t to_earfcn_UL(int eutra_bandP, long long int ul_CarrierFreq, uint32_t bw
uint32_t
from_earfcn
(
int
eutra_bandP
,
uint32_t
dl_earfcn
)
{
int
i
;
AssertFatal
(
eutra_bandP
<
69
,
"eutra_band %d > 68
\n
"
,
eutra_bandP
);
AssertFatal
(
eutra_bandP
<
74
,
"eutra_band %d > 74
\n
"
,
eutra_bandP
);
for
(
i
=
0
;
i
<
BANDTABLE_SIZE
&&
eutra_bandtable
[
i
].
band
!=
eutra_bandP
;
i
++
);
AssertFatal
(
i
<
BANDTABLE_SIZE
,
"i %d >= BANDTABLE_SIZE %ld
\n
"
,
i
,
BANDTABLE_SIZE
);
AssertFatal
(
eutra_bandP
!=
64
,
"LTE b64 is a reserved band"
);
return
(
eutra_bandtable
[
i
].
dl_min
+
(
dl_earfcn
-
(
eutra_bandtable
[
i
].
N_OFFs_DL
/
10
)))
*
100000
;
}
...
...
openair2/RRC/LTE/MESSAGES/asn1_msg.c
View file @
fefa0bfe
...
...
@@ -76,6 +76,7 @@
#include "LTE_SystemInformationBlockType1.h"
#include "LTE_SystemInformationBlockType1-BR-r13.h"
#include "LTE_SystemInformationBlockType1-v8h0-IEs.h"
#include "LTE_SIB-Type.h"
...
...
@@ -937,7 +938,7 @@ uint8_t do_SIB1(rrc_eNB_carrier_data_t *carrier,
(
*
sib1
)
->
cellSelectionInfo
.
q_RxLevMinOffset
=
NULL
;
//(*sib1)->p_Max = CALLOC(1, sizeof(P_Max_t));
// *((*sib1)->p_Max) = 23;
(
*
sib1
)
->
freqBandIndicator
=
configuration
->
eutra_band
[
CC_id
];
schedulingInfo
.
si_Periodicity
=
LTE_SchedulingInfo__si_Periodicity_rf8
;
if
(
configuration
->
eMBMS_M2_configured
){
schedulingInfo2
.
si_Periodicity
=
LTE_SchedulingInfo__si_Periodicity_rf8
;
...
...
@@ -964,7 +965,41 @@ uint8_t do_SIB1(rrc_eNB_carrier_data_t *carrier,
(
*
sib1
)
->
systemInfoValueTag
=
0
;
(
*
sib1
)
->
nonCriticalExtension
=
calloc
(
1
,
sizeof
(
LTE_SystemInformationBlockType1_v890_IEs_t
));
LTE_SystemInformationBlockType1_v890_IEs_t
*
sib1_890
=
(
*
sib1
)
->
nonCriticalExtension
;
sib1_890
->
lateNonCriticalExtension
=
NULL
;
if
(
configuration
->
eutra_band
[
CC_id
]
<=
64
)
{
(
*
sib1
)
->
freqBandIndicator
=
configuration
->
eutra_band
[
CC_id
];
sib1_890
->
lateNonCriticalExtension
=
NULL
;
}
else
{
(
*
sib1
)
->
freqBandIndicator
=
64
;
sib1_890
->
lateNonCriticalExtension
=
calloc
(
1
,
sizeof
(
OCTET_STRING_t
));
OCTET_STRING_t
*
octate
=
(
*
sib1_890
).
lateNonCriticalExtension
;
LTE_SystemInformationBlockType1_v8h0_IEs_t
*
sib1_8h0
=
NULL
;
sib1_8h0
=
calloc
(
1
,
sizeof
(
LTE_SystemInformationBlockType1_v8h0_IEs_t
));
sib1_8h0
->
multiBandInfoList
=
NULL
;
sib1_8h0
->
nonCriticalExtension
=
calloc
(
1
,
sizeof
(
LTE_SystemInformationBlockType1_v9e0_IEs_t
));
long
*
eutra_band_ptr
;
eutra_band_ptr
=
malloc
(
sizeof
(
long
));
*
eutra_band_ptr
=
configuration
->
eutra_band
[
CC_id
];
LTE_SystemInformationBlockType1_v9e0_IEs_t
*
sib1_9e0
=
sib1_8h0
->
nonCriticalExtension
;
sib1_9e0
->
freqBandIndicator_v9e0
=
eutra_band_ptr
;
sib1_9e0
->
multiBandInfoList_v9e0
=
NULL
;
sib1_9e0
->
nonCriticalExtension
=
NULL
;
char
buffer_sib8h0
[
1024
];
enc_rval
=
uper_encode_to_buffer
(
&
asn_DEF_LTE_SystemInformationBlockType1_v8h0_IEs
,
NULL
,
(
void
*
)
sib1_8h0
,
buffer_sib8h0
,
1024
);
AssertFatal
(
enc_rval
.
encoded
>
0
,
"ASN1 message encoding failed (%s, %lu)!
\n
"
,
enc_rval
.
failed_type
->
name
,
enc_rval
.
encoded
);
OCTET_STRING_fromBuf
(
octate
,(
const
char
*
)
buffer_sib8h0
,(
enc_rval
.
encoded
+
7
)
/
8
);
ASN_STRUCT_FREE
(
asn_DEF_LTE_SystemInformationBlockType1_v8h0_IEs
,
sib1_8h0
);
}
sib1_890
->
nonCriticalExtension
=
calloc
(
1
,
sizeof
(
LTE_SystemInformationBlockType1_v920_IEs_t
));
memset
(
sib1_890
->
nonCriticalExtension
,
0
,
sizeof
(
LTE_SystemInformationBlockType1_v920_IEs_t
));
LTE_SystemInformationBlockType1_v920_IEs_t
*
sib1_920
=
(
*
sib1_890
).
nonCriticalExtension
;
...
...
openair2/RRC/LTE/rrc_common.c
View file @
fefa0bfe
...
...
@@ -203,6 +203,12 @@ static band_freq bands[] = {
{
BAND_TYPE_TDD
,
41
,
2496000000UL
,
2690000000UL
,
2496000000UL
,
2690000000UL
},
{
BAND_TYPE_TDD
,
42
,
3400000000UL
,
3600000000UL
,
3400000000UL
,
3600000000UL
},
{
BAND_TYPE_TDD
,
43
,
3600000000UL
,
3800000000UL
,
3600000000UL
,
3800000000UL
},
// ...
{
BAND_TYPE_FDD
,
65
,
1920000000UL
,
2010000000UL
,
2110000000UL
,
2200000000UL
},
{
BAND_TYPE_FDD
,
66
,
1710000000UL
,
1780000000UL
,
2110000000UL
,
2200000000UL
},
{
BAND_TYPE_FDD
,
71
,
663000000UL
,
698000000UL
,
617000000UL
,
652000000UL
},
{
BAND_TYPE_FDD
,
72
,
451000000UL
,
456000000UL
,
461000000UL
,
466000000UL
},
{
BAND_TYPE_FDD
,
73
,
450000000UL
,
455000000UL
,
460000000UL
,
466000000UL
},
};
typedef
struct
{
...
...
@@ -250,6 +256,11 @@ static earfcn earfcn_table[] = {
{
41
,
2496000000UL
,
39650
,
39650
,
41589
,
2496000000UL
,
39650
,
39650
,
41589
},
{
42
,
3400000000UL
,
41590
,
41590
,
43589
,
3400000000UL
,
41590
,
41590
,
43589
},
{
43
,
3600000000UL
,
43590
,
43590
,
45589
,
3600000000UL
,
43590
,
43590
,
45589
},
// ...
{
66
,
2110000000UL
,
66436
,
66436
,
67335
,
17100000000UL
,
131972
,
131972
,
132671
},
{
71
,
617000000UL
,
68586
,
68586
,
68935
,
6630000000UL
,
133122
,
133122
,
133471
},
{
72
,
461000000UL
,
68936
,
68936
,
68985
,
4510000000UL
,
133472
,
133472
,
133521
},
{
73
,
460000000UL
,
68986
,
68986
,
69035
,
4500000000UL
,
133522
,
133522
,
133571
},
};
int
freq_to_arfcn10
(
int
band
,
unsigned
long
freq
)
{
...
...
openair2/RRC/LTE/rrc_eNB.c
View file @
fefa0bfe
...
...
@@ -427,7 +427,7 @@ init_SI(
.
physCellId
=
carrier
->
physCellId
,
.
p_eNB
=
carrier
->
p_eNB
,
.
Ncp
=
carrier
->
Ncp
,
.
eutra_band
=
carrier
->
sib1
->
freqBandIndicator
,
.
eutra_band
=
carrier
->
eutra_band
,
.
dl_CarrierFreq
=
carrier
->
dl_CarrierFreq
,
.
pbch_repetition
=
carrier
->
pbch_repetition
,
.
mib
=
&
carrier
->
mib
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment