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
wangjie
OpenXG-RAN
Commits
2389b633
Commit
2389b633
authored
Sep 02, 2020
by
heshanyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue about generate msg4 failed
parent
db45121f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
openair2/RRC/LTE/MESSAGES/asn1_msg.c
openair2/RRC/LTE/MESSAGES/asn1_msg.c
+8
-13
No files found.
openair2/RRC/LTE/MESSAGES/asn1_msg.c
View file @
2389b633
...
...
@@ -2715,23 +2715,23 @@ do_RRCConnectionSetup(
physicalConfigDedicated2
->
antennaInfo
->
choice
.
explicitValue
.
ue_TransmitAntennaSelection
.
choice
.
release
=
0
;
// SchedulingRequestConfig
physicalConfigDedicated2
->
schedulingRequestConfig
->
present
=
LTE_SchedulingRequestConfig_PR_setup
;
int
sr_base
=
carrier
->
sib2
->
radioResourceConfigCommon
.
pucch_ConfigCommon
.
n1PUCCH_AN
-
1
;
if
(
carrier
->
sib1
->
tdd_Config
==
NULL
)
{
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
sr_base
-
ue_context_pP
->
local_uid
/
10
;
//ue_context_pP->local_uid;
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
71
-
ue_context_pP
->
local_uid
/
10
;
//ue_context_pP->local_uid;
}
else
{
switch
(
carrier
->
sib1
->
tdd_Config
->
subframeAssignment
)
{
case
1
:
switch
(
frame_parms
->
N_RB_UL
)
{
case
25
:
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
sr_base
-
ue_context_pP
->
local_uid
/
4
;
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
15
-
ue_context_pP
->
local_uid
/
4
;
break
;
case
50
:
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
sr_base
-
ue_context_pP
->
local_uid
/
4
;
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
31
-
ue_context_pP
->
local_uid
/
4
;
break
;
case
100
:
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
sr_base
-
ue_context_pP
->
local_uid
/
4
;
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
63
-
ue_context_pP
->
local_uid
/
4
;
break
;
}
...
...
@@ -2740,15 +2740,15 @@ do_RRCConnectionSetup(
case
2
:
switch
(
frame_parms
->
N_RB_UL
)
{
case
25
:
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
sr_base
-
ue_context_pP
->
local_uid
/
4
;
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
15
-
ue_context_pP
->
local_uid
/
4
;
break
;
case
50
:
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
sr_base
-
ue_context_pP
->
local_uid
/
4
;
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
31
-
ue_context_pP
->
local_uid
/
4
;
break
;
case
100
:
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
sr_base
-
ue_context_pP
->
local_uid
/
4
;
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
=
63
-
ue_context_pP
->
local_uid
/
4
;
break
;
}
...
...
@@ -2759,11 +2759,6 @@ do_RRCConnectionSetup(
break
;
}
}
if
(
!
((
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
>=
0
)
&&
(
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
<
carrier
->
sib2
->
radioResourceConfigCommon
.
pucch_ConfigCommon
.
n1PUCCH_AN
)))
{
LOG_E
(
RRC
,
"illegal sr_PUCCH_ResourceIndex %ld n1PUCCH_AN %ld ue_context_pP->local_uid %d
\n
"
,
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
,
carrier
->
sib2
->
radioResourceConfigCommon
.
pucch_ConfigCommon
.
n1PUCCH_AN
,
ue_context_pP
->
local_uid
);
return
-
1
;
}
if
(
carrier
->
sib1
->
tdd_Config
==
NULL
)
{
// FDD
physicalConfigDedicated2
->
schedulingRequestConfig
->
choice
.
setup
.
sr_ConfigIndex
=
5
+
(
ue_context_pP
->
local_uid
%
10
);
// Isr = 5 (every 10 subframes, offset=2+UE_id mod3)
...
...
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