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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
c534570e
Commit
c534570e
authored
Apr 19, 2024
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added srcid to nas_config for SL
parent
9642a70e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
26 deletions
+1
-26
openair2/LAYER2/NR_MAC_COMMON/nr_mac.h
openair2/LAYER2/NR_MAC_COMMON/nr_mac.h
+0
-25
openair2/RRC/NR_UE/rrc_sl_preconfig.c
openair2/RRC/NR_UE/rrc_sl_preconfig.c
+1
-1
No files found.
openair2/LAYER2/NR_MAC_COMMON/nr_mac.h
View file @
c534570e
...
...
@@ -139,31 +139,6 @@ static inline int get_mac_len(uint8_t* pdu, int pdu_len, uint16_t *mac_ce_len, u
return
true
;
}
static
inline
int
get_mac_len_sl
(
uint8_t
*
pdu
,
int
pdu_len
,
uint16_t
*
mac_ce_len
,
uint16_t
*
mac_subheader_len
)
{
uint8_t
sl_sch_header_len
=
(
int
)
sizeof
(
NR_SLSCH_MAC_SUBHEADER_FIXED
);
if
(
pdu_len
<
sl_sch_header_len
)
return
false
;
NR_SLSCH_MAC_SUBHEADER_FIXED
*
sl_sch_subheader
=
(
NR_SLSCH_MAC_SUBHEADER_FIXED
*
)
pdu
;
pdu
+=
sl_sch_header_len
;
if
(
pdu_len
<
sl_sch_header_len
+
(
int
)
sizeof
(
NR_MAC_SUBHEADER_SHORT
))
return
false
;
NR_MAC_SUBHEADER_SHORT
*
s
=
(
NR_MAC_SUBHEADER_SHORT
*
)
pdu
;
NR_MAC_SUBHEADER_LONG
*
l
=
(
NR_MAC_SUBHEADER_LONG
*
)
pdu
;
if
(
s
->
F
&&
pdu_len
<
sl_sch_header_len
+
(
int
)
sizeof
(
NR_MAC_SUBHEADER_LONG
))
return
false
;
if
(
s
->
F
)
{
*
mac_subheader_len
=
sizeof
(
*
l
)
+
sizeof
(
*
sl_sch_subheader
);
*
mac_ce_len
=
ntohs
(
l
->
L
);
}
else
{
*
mac_subheader_len
=
sizeof
(
*
s
)
+
sizeof
(
*
sl_sch_subheader
);
*
mac_ce_len
=
s
->
L
;
}
LOG_D
(
NR_MAC
,
"V %hhu, SRC %hu, DST %hhu
\n
"
,
sl_sch_subheader
->
V
,
sl_sch_subheader
->
SRC
,
sl_sch_subheader
->
DST
);
LOG_D
(
NR_MAC
,
"R %hhu, F %hhu, LCID %hhu, L %hu
\n
"
,
l
->
R
,
l
->
F
,
l
->
LCID
,
ntohs
(
l
->
L
));
LOG_D
(
NR_MAC
,
"mac_subheader_len %hu, mac_ce_len %hu
\n
"
,
*
mac_subheader_len
,
*
mac_ce_len
);
return
true
;
}
// SL BSR MAC CEs
// TS 38.321 ch. 6.1.3.33
// Short BSR for a specific logical channel group ID
...
...
openair2/RRC/NR_UE/rrc_sl_preconfig.c
View file @
c534570e
...
...
@@ -590,7 +590,7 @@ void nr_UE_configure_Sidelink(uint8_t id, uint8_t is_sync_source) {
sprintf
(
aprefix
,
"%s.[%i].%s.[%i]"
,
SL_CONFIG_STRING_SL_PRECONFIGURATION
,
0
,
SL_CONFIG_STRING_UEINFO
,
0
);
config_get
(
SL_UEINFO
,
sizeof
(
SL_UEINFO
)
/
sizeof
(
paramdef_t
),
aprefix
);
LOG_I
(
NR_RRC
,
"SL L2 SRCid %x, SL ipv4 addr X.X.%d.%d
\n
"
,
ueinfo
.
srcid
,
ueinfo
.
thirdOctet
,
ueinfo
.
fourthOctet
);
nas_config
(
1
,
ueinfo
.
thirdOctet
,
ueinfo
.
fourthOctet
,
"oai_sl_tun"
);
nas_config
(
1
+
ueinfo
.
srcid
,
ueinfo
.
thirdOctet
,
ueinfo
.
fourthOctet
,
"oai_sl_tun"
);
nr_rrc_mac_config_req_sl_preconfig
(
id
,
sl_preconfig
,
sync_source
,
ueinfo
.
srcid
);
...
...
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