aboutsummaryrefslogtreecommitdiffstats
path: root/src/abis_rsl.c
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-02-10 00:06:19 +0000
committerHolger Freyther <zecke@selfish.org>2009-02-10 00:06:19 +0000
commit392209cbb55ebaaa5d795e196198f16615c3d7e4 (patch)
tree37a5bb77eceb8ecb430a90bdbcf9b9a3356f1358 /src/abis_rsl.c
parent1fd34141c220fcc0c04029a2966ef486ed8cb6be (diff)
[paging] Introduce a variable containing the free paging slots
Start with a large number of available slots. It is guranteed that we will - at some point - get a paging load and will properly update the counter and keep it updated.
Diffstat (limited to 'src/abis_rsl.c')
-rw-r--r--src/abis_rsl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/abis_rsl.c b/src/abis_rsl.c
index 1c78bf72c..ad869f4db 100644
--- a/src/abis_rsl.c
+++ b/src/abis_rsl.c
@@ -32,6 +32,7 @@
#include <openbsc/chan_alloc.h>
#include <openbsc/debug.h>
#include <openbsc/tlv.h>
+#include <openbsc/paging.h>
#define RSL_ALLOC_SIZE 1024
#define RSL_ALLOC_HEADROOM 128
@@ -673,6 +674,7 @@ static int rsl_rx_ccch_load(struct msgb *msg)
pg_buf_space = rslh->data[1] << 8 | rslh->data[2];
DEBUGP(DRSL, "CCCH LOAD IND, free paging buffer space: %u\n",
pg_buf_space);
+ paging_update_buffer_space(msg->trx->bts, pg_buf_space);
break;
case RSL_IE_RACH_LOAD:
if (msg->data_len >= 7) {