Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
d381c64f
Commit
d381c64f
authored
10 years ago
by
Lionel Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
mnc ascii/bin
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5864
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
27a5ec2c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair-cn/MME_APP/mme_app_authentication.c
+20
-20
20 additions, 20 deletions
openair-cn/MME_APP/mme_app_authentication.c
with
20 additions
and
20 deletions
openair-cn/MME_APP/mme_app_authentication.c
+
20
−
20
View file @
d381c64f
...
...
@@ -326,23 +326,6 @@ void
mme_app_handle_nas_auth_param_req
(
const
nas_auth_param_req_t
*
const
nas_auth_param_req_pP
)
{
static
const
plmn_t
visited_plmn_eur
=
{
.
MCCdigit3
=
2
,
.
MCCdigit2
=
0
,
.
MCCdigit1
=
8
,
.
MNCdigit1
=
0
,
.
MNCdigit2
=
1
,
.
MNCdigit3
=
0
,
};
static
const
plmn_t
visited_plmn_dongle
=
{
.
MCCdigit3
=
2
,
.
MCCdigit2
=
0
,
.
MCCdigit1
=
8
,
.
MNCdigit3
=
2
,
.
MNCdigit2
=
9
,
.
MNCdigit1
=
0xF
,
};
plmn_t
*
visited_plmn
=
NULL
;
struct
ue_context_s
*
ue_context
=
NULL
;
uint64_t
imsi
=
0
;
...
...
@@ -357,8 +340,6 @@ mme_app_handle_nas_auth_param_req(
};
DevAssert
(
nas_auth_param_req_pP
!=
NULL
);
//visited_plmn = &visited_plmn_eur;
//visited_plmn = &visited_plmn_dongle;
visited_plmn
=
&
visited_plmn_from_req
;
visited_plmn_from_req
.
MCCdigit1
=
nas_auth_param_req_pP
->
imsi
[
0
];
...
...
@@ -372,10 +353,11 @@ mme_app_handle_nas_auth_param_req(
nas_auth_param_req_pP
->
imsi
[
4
],
nas_auth_param_req_pP
->
imsi
[
5
]
);
if
(
mnc_length
==
2
)
{
visited_plmn_from_req
.
MNCdigit1
=
nas_auth_param_req_pP
->
imsi
[
3
];
visited_plmn_from_req
.
MNCdigit2
=
nas_auth_param_req_pP
->
imsi
[
4
];
visited_plmn_from_req
.
MNCdigit3
=
"F"
;
visited_plmn_from_req
.
MNCdigit3
=
15
;
}
else
if
(
mnc_length
==
3
)
{
visited_plmn_from_req
.
MNCdigit1
=
nas_auth_param_req_pP
->
imsi
[
3
];
visited_plmn_from_req
.
MNCdigit2
=
nas_auth_param_req_pP
->
imsi
[
4
];
...
...
@@ -383,6 +365,24 @@ mme_app_handle_nas_auth_param_req(
}
else
{
AssertFatal
(
0
,
"MNC Not found (mcc_mnc_list)"
);
}
if
(
mnc_length
==
3
)
{
MME_APP_DEBUG
(
"%s visited_plmn_from_req %1d%1d%1d.%1d%1d%1d
\n
"
,
__FUNCTION__
,
visited_plmn_from_req
.
MCCdigit1
,
visited_plmn_from_req
.
MCCdigit2
,
visited_plmn_from_req
.
MCCdigit3
,
visited_plmn_from_req
.
MNCdigit1
,
visited_plmn_from_req
.
MNCdigit2
,
visited_plmn_from_req
.
MNCdigit3
);
}
else
{
MME_APP_DEBUG
(
"%s visited_plmn_from_req %1d%1d%1d.%1d%1d
\n
"
,
__FUNCTION__
,
visited_plmn_from_req
.
MCCdigit1
,
visited_plmn_from_req
.
MCCdigit2
,
visited_plmn_from_req
.
MCCdigit3
,
visited_plmn_from_req
.
MNCdigit1
,
visited_plmn_from_req
.
MNCdigit2
);
}
MME_APP_STRING_TO_IMSI
(
nas_auth_param_req_pP
->
imsi
,
&
imsi
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment