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
zzha zzha
OpenXG-RAN
Commits
e93545bc
Commit
e93545bc
authored
Aug 27, 2021
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting
parent
d0c1bc43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
225 additions
and
235 deletions
+225
-235
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+225
-235
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
e93545bc
...
@@ -3139,7 +3139,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3139,7 +3139,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
LOG_D
(
MAC
,
"[UE] LCID %d, PDU length %d
\n
"
,
rx_lcid
,
pdu_len
);
LOG_D
(
MAC
,
"[UE] LCID %d, PDU length %d
\n
"
,
rx_lcid
,
pdu_len
);
switch
(
rx_lcid
){
switch
(
rx_lcid
){
// MAC CE
// MAC CE
case
DL_SCH_LCID_CCCH
:
case
DL_SCH_LCID_CCCH
:
// MSG4 RRC Setup 38.331
// MSG4 RRC Setup 38.331
// variable length
// variable length
...
@@ -3176,7 +3175,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3176,7 +3175,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
nr_mac_rrc_data_ind_ue
(
module_idP
,
CC_id
,
gNB_index
,
frameP
,
0
,
mac
->
crnti
,
CCCH
,
pduP
+
mac_subheader_len
,
mac_sdu_len
);
nr_mac_rrc_data_ind_ue
(
module_idP
,
CC_id
,
gNB_index
,
frameP
,
0
,
mac
->
crnti
,
CCCH
,
pduP
+
mac_subheader_len
,
mac_sdu_len
);
}
}
break
;
break
;
case
DL_SCH_LCID_TCI_STATE_ACT_UE_SPEC_PDSCH
:
case
DL_SCH_LCID_TCI_STATE_ACT_UE_SPEC_PDSCH
:
// 38.321 Ch6.1.3.14
// 38.321 Ch6.1.3.14
...
@@ -3218,7 +3216,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3218,7 +3216,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
mac_subheader_len
=
3
;
mac_subheader_len
=
3
;
}
}
break
;
break
;
case
DL_SCH_LCID_RECOMMENDED_BITRATE
:
case
DL_SCH_LCID_RECOMMENDED_BITRATE
:
// 38.321 Ch6.1.3.20
// 38.321 Ch6.1.3.20
mac_ce_len
=
2
;
mac_ce_len
=
2
;
...
@@ -3308,21 +3305,16 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3308,21 +3305,16 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
ra
->
RA_active
=
0
;
ra
->
RA_active
=
0
;
}
}
}
}
break
;
break
;
case
DL_SCH_LCID_PADDING
:
case
DL_SCH_LCID_PADDING
:
done
=
1
;
done
=
1
;
// end of MAC PDU, can ignore the rest.
// end of MAC PDU, can ignore the rest.
break
;
break
;
// MAC SDU
// MAC SDU
case
DL_SCH_LCID_DCCH
:
case
DL_SCH_LCID_DCCH
:
// check if LCID is valid at current time.
// check if LCID is valid at current time.
case
DL_SCH_LCID_DCCH1
:
case
DL_SCH_LCID_DCCH1
:
// check if LCID is valid at current time.
// check if LCID is valid at current time.
default:
default:
// check if LCID is valid at current time.
// check if LCID is valid at current time.
if
(((
NR_MAC_SUBHEADER_SHORT
*
)
pduP
)
->
F
){
if
(((
NR_MAC_SUBHEADER_SHORT
*
)
pduP
)
->
F
){
...
@@ -3347,7 +3339,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3347,7 +3339,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
LOG_T
(
MAC
,
"
\n
"
);
LOG_T
(
MAC
,
"
\n
"
);
#endif
#endif
// if (IS_SOFTMODEM_NOS1){
if
(
rx_lcid
<
NB_RB_MAX
&&
rx_lcid
>=
DL_SCH_LCID_DCCH
)
{
if
(
rx_lcid
<
NB_RB_MAX
&&
rx_lcid
>=
DL_SCH_LCID_DCCH
)
{
mac_rlc_data_ind
(
module_idP
,
mac_rlc_data_ind
(
module_idP
,
...
@@ -3364,7 +3355,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3364,7 +3355,6 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
}
else
{
}
else
{
LOG_E
(
MAC
,
"[UE %d] Frame %d : unknown LCID %d (gNB %d)
\n
"
,
module_idP
,
frameP
,
rx_lcid
,
gNB_index
);
LOG_E
(
MAC
,
"[UE %d] Frame %d : unknown LCID %d (gNB %d)
\n
"
,
module_idP
,
frameP
,
rx_lcid
,
gNB_index
);
}
}
// }
break
;
break
;
}
}
...
...
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