From b2be195b501d8327a493f93bc9fba41f8a699ba4 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 16 Jun 2010 13:23:55 +0800 Subject: bsc_api: Rename lchan_for_subscr to connection_for_subscr and update code With handover and late/early assignment there might be two channels for one subscriber and only the BSC knows which one to use, so use the gsm_subscriber_connection everywhere... --- openbsc/src/silent_call.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'openbsc/src/silent_call.c') diff --git a/openbsc/src/silent_call.c b/openbsc/src/silent_call.c index 8bd5341ec..00acc1dc4 100644 --- a/openbsc/src/silent_call.c +++ b/openbsc/src/silent_call.c @@ -128,15 +128,13 @@ int gsm_silent_call_start(struct gsm_subscriber *subscr, void *data, int type) /* end a silent call with a given subscriber */ int gsm_silent_call_stop(struct gsm_subscriber *subscr) { - struct gsm_lchan *lchan; struct gsm_subscriber_connection *conn; - lchan = lchan_for_subscr(subscr); - if (!lchan) + conn = connection_for_subscr(subscr); + if (!conn) return -EINVAL; /* did we actually establish a silent call for this guy? */ - conn = &lchan->conn; if (!conn->silent_call) return -EINVAL; -- cgit v1.2.3