summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-08-21 17:10:30 +0200
committerAndreas.Eversberg2010-08-21 17:10:30 +0200
commitc6a423392efd2a2264f9361d782146bdedca2633 (patch)
tree68773f4a06196a96efee1011bfb8213ec49cff8a /src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h
parent[layer23] Header file for last commit (diff)
downloadosmocom-c6a423392efd2a2264f9361d782146bdedca2633.tar.gz
osmocom-c6a423392efd2a2264f9361d782146bdedca2633.tar.xz
osmocom-c6a423392efd2a2264f9361d782146bdedca2633.zip
[layer23] Radio ressource protocol completed except for handover, meas.
Assignment command is now complete as well as frequency redifinition. The handover process is partly complete. Further functionality depends on layer1 capabilites. The measurement report is also incomplete.
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h b/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h
index c703505..68c00d4 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h
@@ -38,6 +38,7 @@
#define RR_REL_CAUSE_TRY_LATER 5
#define RR_REL_CAUSE_EMERGENCY_ONLY 6
#define RR_REL_CAUSE_LOST_SIGNAL 7
+#define RR_REL_CAUSE_LINK_FAILURE 8
#define L3_ALLOC_SIZE 256
#define L3_ALLOC_HEADROOM 64
@@ -60,6 +61,14 @@ struct gsm48_rr_hdr {
#define GSM48_RR_ST_DEDICATED 2
#define GSM48_RR_ST_REL_PEND 3
+/* modify state */
+#define GSM48_RR_MOD_NONE 0
+#define GSM48_RR_MOD_IMM_ASS 1
+#define GSM48_RR_MOD_ASSIGN 2
+#define GSM48_RR_MOD_HANDO 3
+#define GSM48_RR_MOD_ASSIGN_RESUME 4
+#define GSM48_RR_MOD_HANDO_RESUME 5
+
/* channel description */
struct gsm48_rr_cd {
uint8_t tsc;
@@ -114,6 +123,7 @@ struct gsm48_rrlayer {
struct llist_head downqueue;
/* timers */
+ struct timer_list t_starting; /* starting time for chan. access */
struct timer_list t_rel_wait; /* wait for L2 to transmit UA */
struct timer_list t3110;
struct timer_list t3122;
@@ -149,10 +159,9 @@ struct gsm48_rrlayer {
uint8_t cipher_on;
uint8_t cipher_type; /* 10.5.2.9 */
- /* special states when changing channel */
- uint8_t hando_susp_state;
- uint8_t assign_susp_state;
- uint8_t resume_last_state;
+ /* special states when assigning channel */
+ uint8_t modify_state;
+ uint8_t hando_sync_ind, hando_rot, hando_nci, hando_act;
struct gsm48_rr_cd cd_last; /* store last cd in case of failure */
struct gsm48_rr_cd cd_before; /* before start time */
struct gsm48_rr_cd cd_after; /* after start time */