aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/paging.c
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2013-01-03 16:44:28 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-01-13 17:24:45 +0100
commit91816acfb8449379fa8003af4524c65ec36d37a7 (patch)
tree5bb442134fc5a50c7c57e9aaad79a90631eb3c9a /src/common/paging.c
parentfad5b0862514ab4ef6d13fe0d5e4b39a2983e13c (diff)
paging: De-duplicate paging lifetime and max queue length variables
These attributes are saved in paging_state, we don't need to save them a second time in struct gsm_bts_role_bts. Add get and set methods for these attributes and use them consitently in the VTY code.
Diffstat (limited to 'src/common/paging.c')
-rw-r--r--src/common/paging.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/paging.c b/src/common/paging.c
index d7c22610..cd1c370d 100644
--- a/src/common/paging.c
+++ b/src/common/paging.c
@@ -81,6 +81,26 @@ struct paging_state {
struct llist_head paging_queue[MAX_PAGING_BLOCKS_CCCH*MAX_BS_PA_MFRMS];
};
+unsigned int paging_get_lifetime(struct paging_state *ps)
+{
+ return ps->paging_lifetime;
+}
+
+unsigned int paging_get_queue_max(struct paging_state *ps)
+{
+ return ps->num_paging_max;
+}
+
+void paging_set_lifetime(struct paging_state *ps, unsigned int lifetime)
+{
+ ps->paging_lifetime = lifetime;
+}
+
+void paging_set_queue_max(struct paging_state *ps, unsigned int queue_max)
+{
+ ps->num_paging_max = queue_max;
+}
+
static int tmsi_mi_to_uint(uint32_t *out, const uint8_t *tmsi_lv)
{
if (tmsi_lv[0] < 5)