diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-06-21 16:46:05 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-06-21 16:46:05 +0200 |
commit | fa8014f181aecdf5bef554af8fc1a3d56587d6b4 (patch) | |
tree | 9c738b80884c142d8bfb9e03f7efe71c99981b84 /src/common | |
parent | 61fb64d252b8cb04dfa30c1f3bdbf2000443c178 (diff) |
make sure we don't send CCCH LOAD IND before we have an Abis link
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/abis.c | 2 | ||||
-rw-r--r-- | src/common/bts.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/abis.c b/src/common/abis.c index 92051f08..18a2043d 100644 --- a/src/common/abis.c +++ b/src/common/abis.c @@ -54,7 +54,7 @@ extern uint8_t abis_mac[6]; /* send message to BSC */ int abis_tx(struct ipabis_link *link, struct msgb *msg) { - if (link->state != LINK_STATE_CONNECT) { + if (!link || link->state != LINK_STATE_CONNECT) { LOGP(DABIS, LOGL_NOTICE, "Link down, dropping message.\n"); msgb_free(msg); return -EIO; diff --git a/src/common/bts.c b/src/common/bts.c index d00b7f05..d28b4160 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -65,7 +65,7 @@ int bts_init(struct gsm_bts *bts) /* FIXME: make those parameters configurable */ btsb->paging_state = paging_init(btsb, 200, 0); - + btsb->load.ccch.load_ind_period = 60*100; load_timer_start(bts); btsb->rtp_jitter_buf_ms = 100; |