aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-15 11:07:03 +0800
committerHarald Welte <laforge@gnumonks.org>2012-06-15 11:07:03 +0800
commit821bf067e408f649bed62f10683fd44b43c0d673 (patch)
tree1240ff85da82df229f36fc051af7d06d43b905d7 /include
parentc882b85d8c867264a0fe038dfe34bf204f5e3f32 (diff)
RSL: Add CCCH LOAD INDICATION for RACH
We now count the total number of RACH slots, the number with rx level above the busy threshold, and the number of valid access bursts. This data is used to generate RSL CCCH LOAD INDICATION for the RACH.
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/gsm_data.h4
-rw-r--r--include/osmo-bts/rsl.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index f2e3fc86..332c95c1 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -36,6 +36,10 @@ struct gsm_bts_role_bts {
/* Input parameters from OML */
int16_t busy_thresh; /* in dBm */
uint16_t averaging_slots;
+ /* Internal data */
+ unsigned int total; /* total nr */
+ unsigned int busy; /* above busy_thresh */
+ unsigned int access; /* access bursts */
} rach;
} load;
uint8_t ny1;
diff --git a/include/osmo-bts/rsl.h b/include/osmo-bts/rsl.h
index bf1d8131..c8daff32 100644
--- a/include/osmo-bts/rsl.h
+++ b/include/osmo-bts/rsl.h
@@ -16,6 +16,8 @@ int lapdm_rll_tx_cb(struct msgb *msg, struct lapdm_entity *le, void *ctx);
int rsl_tx_ipac_dlcx_ind(struct gsm_lchan *lchan, uint8_t cause);
int rsl_tx_ccch_load_ind_pch(struct gsm_bts *bts, uint16_t paging_avail);
+int rsl_tx_ccch_load_ind_rach(struct gsm_bts *bts, uint16_t total,
+ uint16_t busy, uint16_t access);
struct gsm_lchan *rsl_lchan_lookup(struct gsm_bts_trx *trx, uint8_t chan_nr);