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
aca9dfb8
Commit
aca9dfb8
authored
Feb 19, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hacks to make enc/dec work + add maintenance parms
parent
e85cc02d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
22 deletions
+9
-22
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
+9
-22
No files found.
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
View file @
aca9dfb8
...
...
@@ -1039,11 +1039,7 @@ static uint8_t pack_ul_tti_request_pusch_pdu(nfapi_nr_pusch_pdu_t *pusch_pdu, ui
&&
push8
(
pusch_pdu
->
pusch_data
.
new_data_indicator
,
ppWritePackedMsg
,
end
)
&&
push32
(
pusch_pdu
->
pusch_data
.
tb_size
,
ppWritePackedMsg
,
end
)
&&
push16
(
pusch_pdu
->
pusch_data
.
num_cb
,
ppWritePackedMsg
,
end
)
&&
pusharray8
(
pusch_pdu
->
pusch_data
.
cb_present_and_position
,
(
pusch_pdu
->
pusch_data
.
num_cb
+
7
)
/
8
,
(
pusch_pdu
->
pusch_data
.
num_cb
+
7
)
/
8
,
ppWritePackedMsg
,
end
)))
{
))
{
return
0
;
}
}
break
;
...
...
@@ -1092,19 +1088,10 @@ static uint8_t pack_ul_tti_request_pusch_pdu(nfapi_nr_pusch_pdu_t *pusch_pdu, ui
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"Invalid pdu bitmap %d
\n
"
,
pusch_pdu
->
pdu_bit_map
);
}
}
// Pack RX Beamforming PDU
if
(
!
(
push16
(
pusch_pdu
->
beamforming
.
num_prgs
,
ppWritePackedMsg
,
end
)
&&
push16
(
pusch_pdu
->
beamforming
.
prg_size
,
ppWritePackedMsg
,
end
)
&&
push8
(
pusch_pdu
->
beamforming
.
dig_bf_interface
,
ppWritePackedMsg
,
end
)))
{
return
0
;
}
for
(
int
prg
=
0
;
prg
<
pusch_pdu
->
beamforming
.
num_prgs
;
prg
++
)
{
for
(
int
digBFInterface
=
0
;
digBFInterface
<
pusch_pdu
->
beamforming
.
dig_bf_interface
;
digBFInterface
++
)
{
if
(
!
push16
(
pusch_pdu
->
beamforming
.
prgs_list
[
prg
].
dig_bf_interface_list
[
digBFInterface
].
beam_idx
,
ppWritePackedMsg
,
end
))
{
if
(
!
(
push8
(
pusch_pdu
->
maintenance_parms_v3
.
ldpcBaseGraph
,
ppWritePackedMsg
,
end
)
&&
push32
(
pusch_pdu
->
maintenance_parms_v3
.
tbSizeLbrmBytes
,
ppWritePackedMsg
,
end
)))
return
0
;
}
}
}
return
1
;
}
...
...
@@ -4877,9 +4864,10 @@ static uint8_t unpack_ul_tti_request_pusch_pdu(void *tlv, uint8_t **ppReadPacked
// pack optional TLVs
if
(
!
(
pull8
(
ppReadPackedMsg
,
&
pusch_pdu
->
pusch_data
.
rv_index
,
end
)
&&
pull8
(
ppReadPackedMsg
,
&
pusch_pdu
->
pusch_data
.
harq_process_id
,
end
)
&&
pull8
(
ppReadPackedMsg
,
&
pusch_pdu
->
pusch_data
.
new_data_indicator
,
end
)
&&
pull32
(
ppReadPackedMsg
,
&
pusch_pdu
->
pusch_data
.
tb_size
,
end
)
&&
pull16
(
ppReadPackedMsg
,
&
pusch_pdu
->
pusch_data
.
num_cb
,
end
)
&&
pullarray8
(
ppReadPackedMsg
,
pusch_pdu
->
pusch_data
.
cb_present_and_position
,
1
,
1
,
end
)
))
{
))
{
return
0
;
}
}
break
;
...
...
@@ -4921,11 +4909,10 @@ static uint8_t unpack_ul_tti_request_pusch_pdu(void *tlv, uint8_t **ppReadPacked
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"Invalid pdu bitmap %d
\n
"
,
pusch_pdu
->
pdu_bit_map
);
}
}
uint16_t
dummy16
=
0
;
uint8_t
dummy8
=
0
;
if
(
!
(
pull16
(
ppReadPackedMsg
,
&
dummy16
,
end
)
&&
pull16
(
ppReadPackedMsg
,
&
dummy16
,
end
)
&&
pull8
(
ppReadPackedMsg
,
&
dummy8
,
end
)))
{
if
(
!
(
pull8
(
ppReadPackedMsg
,
&
pusch_pdu
->
maintenance_parms_v3
.
ldpcBaseGraph
,
end
)
&&
pull32
(
ppReadPackedMsg
,
&
pusch_pdu
->
maintenance_parms_v3
.
tbSizeLbrmBytes
,
end
)))
return
0
;
}
return
1
;
}
...
...
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