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
ZhouShuya
OpenXG-RAN
Commits
fb83f468
Commit
fb83f468
authored
Jan 15, 2019
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove extra useless code in MAC
parent
8e91fab0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
187 deletions
+26
-187
openair2/LAYER2/MAC/extern_NB_IoT.h
openair2/LAYER2/MAC/extern_NB_IoT.h
+0
-26
openair2/LAYER2/MAC/main_NB_IoT.c
openair2/LAYER2/MAC/main_NB_IoT.c
+0
-4
openair2/LAYER2/MAC/output_handler_NB_IoT.c
openair2/LAYER2/MAC/output_handler_NB_IoT.c
+25
-144
openair2/LAYER2/MAC/vars_NB_IoT.h
openair2/LAYER2/MAC/vars_NB_IoT.h
+1
-11
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
+0
-2
No files found.
openair2/LAYER2/MAC/extern_NB_IoT.h
View file @
fb83f468
...
@@ -30,30 +30,9 @@
...
@@ -30,30 +30,9 @@
#ifndef __MAC_EXTERN_NB_IOT_H__
#ifndef __MAC_EXTERN_NB_IOT_H__
#define __MAC_EXTERN_NB_IOT_H__
#define __MAC_EXTERN_NB_IOT_H__
// #ifdef USER_MODE
// //#include "stdio.h"
// #endif //USER_MODE
// #include "PHY/defs.h"
// #include "defs.h"
// #include "COMMON/mac_rrc_primitives.h"
// #ifdef PHY_EMUL
// //#include "SIMULATION/simulation_defs.h"
// #endif //PHY_EMUL
#include "openair2/PHY_INTERFACE/defs_NB_IoT.h"
#include "openair2/PHY_INTERFACE/defs_NB_IoT.h"
//#include "RRC/LITE/defs_NB_IoT.h"
//#include "LAYER2/MAC/vars_NB_IoT.h"
//NB-IoT
//extern IF_Module_NB_IoT_t *if_inst_NB_IoT;
//extern eNB_MAC_INST_NB_IoT *mac_inst_NB_IoT;
//#ifndef USER_MODE
// extern RRC_XFACE *Rrc_xface; //// to uncomment when it is used
extern
uint8_t
Is_rrc_registered
;
extern
uint8_t
Is_rrc_registered
;
...
@@ -79,9 +58,6 @@ extern EMULATION_VARS *Emul_vars;
...
@@ -79,9 +58,6 @@ extern EMULATION_VARS *Emul_vars;
extern
eNB_MAC_INST_NB_IoT
*
mac_inst
;
extern
eNB_MAC_INST_NB_IoT
*
mac_inst
;
extern
uint8_t
Is_rrc_registered_NB_IoT
;
extern
uint8_t
Is_rrc_registered_NB_IoT
;
//extern BCCH_BCH_Message_NB_t MIB;
//extern BCCH_DL_SCH_Message_NB_t SIB;
//extern RRCConnectionSetup_NB_r13_IEs_t DED_Config;
extern
available_resource_DL_t
*
available_resource_DL
;
extern
available_resource_DL_t
*
available_resource_DL
;
extern
available_resource_tones_UL_t
*
available_resource_UL
;
extern
available_resource_tones_UL_t
*
available_resource_UL
;
...
@@ -133,8 +109,6 @@ extern const int dl_rep[3];
...
@@ -133,8 +109,6 @@ extern const int dl_rep[3];
extern
const
uint32_t
dci_rep
[
3
];
extern
const
uint32_t
dci_rep
[
3
];
extern
const
uint32_t
harq_rep
[
3
];
extern
const
uint32_t
harq_rep
[
3
];
extern
int
preamble_trigger
;
extern
int
preamble_sfn
;
//SIBs
//SIBs
extern
int
extend_space
[
2
];
extern
int
extend_space
[
2
];
extern
int
extend_alpha_offset
[
2
];
extern
int
extend_alpha_offset
[
2
];
...
...
openair2/LAYER2/MAC/main_NB_IoT.c
View file @
fb83f468
...
@@ -145,10 +145,6 @@ void init_mac_NB_IoT(eNB_MAC_INST_NB_IoT *mac_inst)
...
@@ -145,10 +145,6 @@ void init_mac_NB_IoT(eNB_MAC_INST_NB_IoT *mac_inst)
Initialize_Resource
();
Initialize_Resource
();
//add_UL_Resource(mac_inst);
//add_UL_Resource(mac_inst);
extend_available_resource_DL
(
mac_inst
,
mac_inst
->
current_subframe
+
1
+
160
);
extend_available_resource_DL
(
mac_inst
,
mac_inst
->
current_subframe
+
1
+
160
);
// for fixed scheduling
preamble_trigger
=
0
;
preamble_sfn
=
0
;
}
}
...
...
openair2/LAYER2/MAC/output_handler_NB_IoT.c
View file @
fb83f468
This diff is collapsed.
Click to expand it.
openair2/LAYER2/MAC/vars_NB_IoT.h
View file @
fb83f468
...
@@ -33,22 +33,12 @@
...
@@ -33,22 +33,12 @@
#ifdef USER_MODE
#ifdef USER_MODE
//#include "stdio.h"
//#include "stdio.h"
#endif //USER_MODE
#endif //USER_MODE
//#include "PHY/defs.h"
//#include "defs.h"
#include "LAYER2/MAC/defs_NB_IoT.h"
//#include "PHY_INTERFACE/defs.h"
//#include "COMMON/mac_rrc_primitives.h"
int
preamble_trigger
;
#include "LAYER2/MAC/defs_NB_IoT.h"
int
preamble_sfn
;
//IF_Module_NB_IoT_t *if_inst_NB_IoT;
//NB-IoT--------------------------------------
//NB-IoT--------------------------------------
eNB_MAC_INST_NB_IoT
*
mac_inst
;
eNB_MAC_INST_NB_IoT
*
mac_inst
;
//BCCH_BCH_Message_NB_t MIB;
//BCCH_DL_SCH_Message_NB_t SIB;
//RRCConnectionSetup_NB_r13_IEs_t DED_Config;
schedule_result_t
*
schedule_result_list_UL
;
schedule_result_t
*
schedule_result_list_UL
;
schedule_result_t
*
schedule_result_list_DL
;
schedule_result_t
*
schedule_result_list_DL
;
available_resource_DL_t
*
available_resource_DL
;
available_resource_DL_t
*
available_resource_DL
;
...
...
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
View file @
fb83f468
...
@@ -68,8 +68,6 @@ void UL_indication_NB_IoT(UL_IND_NB_IoT_t *UL_INFO)
...
@@ -68,8 +68,6 @@ void UL_indication_NB_IoT(UL_IND_NB_IoT_t *UL_INFO)
(
UL_INFO
->
nrach_ind
.
nrach_pdu_list
+
i
)
->
nrach_indication_rel13
.
timing_advance
*
16
(
UL_INFO
->
nrach_ind
.
nrach_pdu_list
+
i
)
->
nrach_indication_rel13
.
timing_advance
*
16
);
);
LOG_D
(
MAC
,
"Init_RA_NB_IoT Out
\n
"
);
LOG_D
(
MAC
,
"Init_RA_NB_IoT Out
\n
"
);
preamble_trigger
=
1
;
preamble_sfn
=
UL_INFO
->
frame
;
}
}
}
}
//}
//}
...
...
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