aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-08-21 05:30:19 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-09-28 12:50:49 +0200
commit45f9b3d3fc47074652be951eb74df2b0be2a230f (patch)
tree631077997a59aa7a14fdb6c5de421d7133b68ac3
parent3ee5d3e8af741176843836ac4e78823fa1d17778 (diff)
[paging] Use one of the two reserved LAC to page every BTS
For the on-waves.com MSC case we want to page every BTS reached of the network. Our gsm_subscriber entry does not have a LAC entry set and defaults to zero. Use the reserved 0x0000 to indicate that we want to use every bts in the network. This will influence the paging code to start and stop paging.
-rw-r--r--openbsc/src/gsm_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_data.c b/openbsc/src/gsm_data.c
index 7e8100dcb..9db246cec 100644
--- a/openbsc/src/gsm_data.c
+++ b/openbsc/src/gsm_data.c
@@ -274,7 +274,7 @@ struct gsm_bts *gsm_bts_by_lac(struct gsm_network *net, unsigned int lac,
continue;
}
- if (bts->location_area_code == lac)
+ if (lac == 0 || bts->location_area_code == lac)
return bts;
}
return NULL;