diff options
author | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-12-28 16:36:28 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-29 11:00:18 +0100 |
commit | 82ff397e3118936e4a714334d82b75f765e6d842 (patch) | |
tree | ed7b13f42aa25f89f2f0f5c82fefc3a24fd09de3 /openbsc/src/paging.c | |
parent | 1887f9d153497adc37cec5b8db6b7423ff64d6c0 (diff) |
export the 'trx_is_usable() function and use it from paging
this ensures we don't send paging requests to currently inactive transceivers.
Diffstat (limited to 'openbsc/src/paging.c')
-rw-r--r-- | openbsc/src/paging.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c index 820773a9e..b5dc2d052 100644 --- a/openbsc/src/paging.c +++ b/openbsc/src/paging.c @@ -265,6 +265,11 @@ int paging_request(struct gsm_network *network, struct gsm_subscriber *subscr, bts = gsm_bts_by_lac(network, subscr->lac, bts); if (!bts) break; + + /* skip all currently inactive TRX */ + if (!trx_is_usable(bts->c0)) + continue; + num_pages++; /* Trigger paging, pass any error to caller */ |