summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/gsm48_rr.h
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-07-13 16:21:52 +0200
committerAndreas.Eversberg2010-07-13 16:21:52 +0200
commit6ba18aeb03cebdf07335bf6a7d95d85f1564e035 (patch)
treeeb8c332c7376806c120b67d714ce4efee80a65c7 /src/host/layer23/include/osmocom/gsm48_rr.h
parent[layer23] Correcting an attribute name in sysinfo.h. (diff)
downloadosmocom-6ba18aeb03cebdf07335bf6a7d95d85f1564e035.tar.gz
osmocom-6ba18aeb03cebdf07335bf6a7d95d85f1564e035.tar.xz
osmocom-6ba18aeb03cebdf07335bf6a7d95d85f1564e035.zip
[layer23] Rework of channel request process and control of TA and TX-power
The radio ressource layer uses RSL messages to perform RACH requests now. TX power and timing advance is controlled before RACH request, after IMM.ASS, and during dedicated mode. (Note that TX power control is not yet supported by layer 1.)
Diffstat (limited to 'src/host/layer23/include/osmocom/gsm48_rr.h')
-rw-r--r--src/host/layer23/include/osmocom/gsm48_rr.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/host/layer23/include/osmocom/gsm48_rr.h b/src/host/layer23/include/osmocom/gsm48_rr.h
index 74ccb27..16ba2fe 100644
--- a/src/host/layer23/include/osmocom/gsm48_rr.h
+++ b/src/host/layer23/include/osmocom/gsm48_rr.h
@@ -42,6 +42,9 @@
#define L3_ALLOC_SIZE 256
#define L3_ALLOC_HEADROOM 64
+#define RSL_ALLOC_SIZE 256
+#define RSL_ALLOC_HEADROOM 64
+
#define RR_ALLOC_SIZE 256
#define RR_ALLOC_HEADROOM 64
@@ -88,9 +91,8 @@ struct gsm48_rr_meas {
};
struct gsm48_cr_hist {
- uint32_t fn;
- uint8_t chan_req;
- uint8_t valid;
+ uint8_t valid;
+ struct gsm48_req_ref ref;
};
/* RR sublayer instance */
@@ -123,9 +125,10 @@ struct gsm48_rrlayer {
uint8_t wait_assign; /* waiting for assignment state */
uint8_t n_chan_req; /* number left, incl. current */
uint8_t chan_req_val; /* current request value */
- uint8_t chan_req_mask; /* mask of random bits */
+ uint8_t chan_req_mask; /* mask of random bits */
- /* cr_hist must be signed and greater 8 bit, -1 = no value */
+ /* cr_hist */
+ uint8_t cr_ra; /* stores requested ra until confirmed */
struct gsm48_cr_hist cr_hist[3];
/* current channel descriptions */
@@ -143,6 +146,8 @@ struct gsm48_rrlayer {
/* measurements */
struct gsm48_rr_meas meas;
+ uint8_t ind_tx_power; /* last indicated power */
+ uint8_t ind_ta; /* last indicated ta */
/* BA range */
uint8_t ba_ranges;