diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-19 12:09:58 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-19 16:01:07 +0800 |
commit | c592e697ce6bb26e56dbec19274673d73c25626d (patch) | |
tree | 7d51c926a12a12d99aa314554c6107ebac6fd7eb /openbsc/src/abis_rsl.c | |
parent | ebb6b99c63f98d6cfba459ec54d00cb2ad94d4bd (diff) |
[alloc] Assign a TCH for LU when all SDCCHs are occupied.
When the cell becomes visible we will be bombed with location
updating requests and to reduce the load on the network we should
assign as many channels for it as possible. During load peek it
is even more important than to have a spare voice channel and in
general the LU procedure is pretty fast.
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r-- | openbsc/src/abis_rsl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index efafed86a..268c2d7b2 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -1140,6 +1140,7 @@ static int rsl_rx_chan_rqd(struct msgb *msg) struct gsm_lchan *lchan; u_int8_t rqd_ta; int ret; + int is_lu; u_int16_t arfcn; u_int8_t ts_number, subch; @@ -1162,8 +1163,14 @@ static int rsl_rx_chan_rqd(struct msgb *msg) counter_inc(bts->network->stats.chreq.total); + /* + * We want LOCATION UPDATES to succeed and will assign a TCH + * if we have no SDCCH available. + */ + is_lu = !!(chreq_reason == GSM_CHREQ_REASON_LOCATION_UPD); + /* check availability / allocate channel */ - lchan = lchan_alloc(bts, lctype); + lchan = lchan_alloc(bts, lctype, is_lu); if (!lchan) { LOGP(DRSL, LOGL_NOTICE, "BTS %d CHAN RQD: no resources for %s 0x%x\n", msg->lchan->ts->trx->bts->nr, gsm_lchant_name(lctype), rqd_ref->ra); |