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
canghaiwuhen
OpenXG-RAN
Commits
e1a309a7
Commit
e1a309a7
authored
May 20, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change the timing of transmissionMode setting
parent
c2fe241d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
3 deletions
+26
-3
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+14
-1
openair2/LAYER2/MAC/mac.h
openair2/LAYER2/MAC/mac.h
+1
-1
openair2/LAYER2/MAC/mac_proto.h
openair2/LAYER2/MAC/mac_proto.h
+1
-1
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+10
-0
No files found.
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
e1a309a7
...
...
@@ -2189,6 +2189,8 @@ add_new_ue(module_id_t mod_idP,
int
UE_id
;
int
i
,
j
;
UE_list_t
*
UE_list
=
&
RC
.
mac
[
mod_idP
]
->
UE_list
;
eNB_MAC_INST
*
eNB
=
RC
.
mac
[
mod_idP
];
COMMON_channels_t
*
cc
=
&
eNB
->
common_channels
[
cc_idP
];
LOG_D
(
MAC
,
"[eNB %d, CC_id %d] Adding UE with rnti %x (next avail %d, num_UEs %d)
\n
"
,
mod_idP
,
cc_idP
,
...
...
@@ -2212,6 +2214,7 @@ add_new_ue(module_id_t mod_idP,
UE_list
->
ordered_ULCCids
[
0
][
UE_id
]
=
cc_idP
;
UE_list
->
num_UEs
++
;
UE_list
->
active
[
UE_id
]
=
TRUE
;
UE_list
->
UE_template
[
cc_idP
][
UE_id
].
tm
=
cc
->
p_eNB
;
#if defined(USRP_REC_PLAY) // not specific to record/playback ?
UE_list
->
UE_template
[
cc_idP
][
UE_id
].
pre_assigned_mcs_ul
=
0
;
#endif
...
...
@@ -2597,6 +2600,15 @@ UE_is_to_be_scheduled(module_id_t module_idP,
return
0
;
}
void
set_tmode
(
module_id_t
module_idP
,
int
CC_idP
,
int
rntiP
,
int
tm
){
int
UE_id
;
eNB_MAC_INST
*
eNB
=
RC
.
mac
[
module_idP
];
UE_list_t
*
UE_list
=
&
eNB
->
UE_list
;
UE_id
=
find_UE_id
(
module_idP
,
rntiP
);
if
(
UE_id
!=
-
1
)
UE_list
->
UE_template
[
CC_idP
][
UE_id
].
tm
=
tm
;
}
//------------------------------------------------------------------------------
uint8_t
get_tmode
(
module_id_t
module_idP
,
...
...
@@ -2626,7 +2638,8 @@ get_tmode(module_id_t module_idP,
CC_idP
);
if
(
physicalConfigDedicated
->
antennaInfo
->
present
==
LTE_PhysicalConfigDedicated__antennaInfo_PR_explicitValue
)
{
return
(
1
+
physicalConfigDedicated
->
antennaInfo
->
choice
.
explicitValue
.
transmissionMode
);
// return (1 + physicalConfigDedicated->antennaInfo->choice.explicitValue.transmissionMode);
return
eNB
->
UE_list
.
UE_template
[
CC_idP
][
UE_idP
].
tm
;
}
if
(
physicalConfigDedicated
->
antennaInfo
->
present
==
LTE_PhysicalConfigDedicated__antennaInfo_PR_defaultValue
)
{
...
...
openair2/LAYER2/MAC/mac.h
View file @
e1a309a7
...
...
@@ -919,7 +919,7 @@ typedef struct {
sub_frame_t
Msg2_subframe
;
LTE_PhysicalConfigDedicated_t
*
physicalConfigDedicated
;
int
tm
;
}
UE_TEMPLATE
;
/*! \brief scheduling control information set through an API (not used)*/
...
...
openair2/LAYER2/MAC/mac_proto.h
View file @
e1a309a7
...
...
@@ -1237,7 +1237,7 @@ void fill_nfapi_dl_dci_1A(nfapi_dl_config_request_pdu_t * dl_config_pdu,
nfapi_ul_config_request_pdu_t
*
has_ul_grant
(
module_id_t
module_idP
,
int
CC_idP
,
uint16_t
subframeP
,
uint16_t
rnti
);
void
set_tmode
(
module_id_t
module_idP
,
int
CC_idP
,
int
rntiP
,
int
tm
);
uint8_t
get_tmode
(
module_id_t
module_idP
,
int
CC_idP
,
int
UE_idP
);
uint8_t
get_ul_req_index
(
module_id_t
module_idP
,
int
CC_idP
,
...
...
openair2/RRC/LTE/rrc_eNB.c
View file @
e1a309a7
...
...
@@ -5755,6 +5755,16 @@ rrc_eNB_process_RRCConnectionReconfigurationComplete(
ue_context_pP
->
ue_context
.
DRB_configList2
[
xid
]
=
NULL
;
}
// end if DRB_configList != NULL
struct
LTE_PhysicalConfigDedicated
**
physicalConfigDedicated
=
&
ue_context_pP
->
ue_context
.
physicalConfigDedicated
;
if
(
*
physicalConfigDedicated
)
{
if
((
*
physicalConfigDedicated
)
->
antennaInfo
)
{
if
((
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
transmissionMode
>
1
){
set_tmode
(
ctxt_pP
->
module_id
,
ue_context_pP
->
ue_context
.
primaryCC_id
,
ue_context_pP
->
ue_context
.
rnti
,
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
transmissionMode
+
1
);
}
}
}
if
(
DRB_Release_configList2
!=
NULL
)
{
for
(
int
i
=
0
;
i
<
DRB_Release_configList2
->
list
.
count
;
i
++
)
{
if
(
DRB_Release_configList2
->
list
.
array
[
i
])
{
...
...
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