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
7045166f
Commit
7045166f
authored
Sep 16, 2020
by
Andrew Burger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cant unpack rx_ind in UE
parent
6ed8610a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+13
-13
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
7045166f
...
...
@@ -1368,19 +1368,19 @@ static void print_rx_ind(nfapi_rx_indication_t *p)
encoded_size
,
NFAPI_SFNSF2SFN
(
UL
->
rx_ind
.
sfn_sf
),
NFAPI_SFNSF2SF
(
UL
->
rx_ind
.
sfn_sf
),
UL
->
rx_ind
.
rx_indication_body
.
tl
.
length
,
UL
->
rx_ind
.
rx_indication_body
.
number_of_pdus
,
hexdump
(
buffer
,
encoded_size
,
dump
,
sizeof
(
dump
)));
nfapi_rx_indication_t
test_ind
;
if
(
nfapi_p7_message_unpack
(
buffer
,
encoded_size
,
&
test_ind
,
sizeof
(
test_ind
),
NULL
)
<
0
)
{
LOG_E
(
MAC
,
"could not unpack rx_ind right after packing encoded_size: %d
\n
"
,
encoded_size
);
abort
();
}
print_rx_ind
(
&
test_ind
);
char
test_buffer
[
1024
];
int
encoded_size2
=
nfapi_p7_message_pack
(
&
test_ind
,
test_buffer
,
sizeof
(
test_buffer
),
NULL
);
if
(
encoded_size2
<
0
)
{
LOG_E
(
MAC
,
"could not pack rx_ind right after unpacking encoded_size2: %d
\n
"
,
encoded_size2
);
}
//
nfapi_rx_indication_t test_ind;
//
if (nfapi_p7_message_unpack(buffer, encoded_size, &test_ind, sizeof(test_ind), NULL) < 0)
//
{
//
LOG_E(MAC, "could not unpack rx_ind right after packing encoded_size: %d\n", encoded_size);
//
abort();
//
}
//
print_rx_ind(&test_ind);
//
char test_buffer[1024];
//
int encoded_size2 = nfapi_p7_message_pack(&test_ind, test_buffer, sizeof(test_buffer), NULL);
//
if (encoded_size2 < 0)
//
{
//
LOG_E(MAC, "could not pack rx_ind right after unpacking encoded_size2: %d\n", encoded_size2);
//
}
break
;
case
NFAPI_RX_CQI_INDICATION
:
encoded_size
=
nfapi_p7_message_pack
(
&
UL
->
cqi_ind
,
buffer
,
sizeof
(
buffer
),
NULL
);
// Check pdu->ul_cqi_information.channel = 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