diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-16 13:23:55 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-16 15:42:38 +0800 |
commit | b2be195b501d8327a493f93bc9fba41f8a699ba4 (patch) | |
tree | fb27e7bf7c080946cfbc38b3beea7e90c50e2fcb /openbsc/src/silent_call.c | |
parent | ea01ca764fcf0912ac2ccd1a8818640518911a51 (diff) |
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...
Diffstat (limited to 'openbsc/src/silent_call.c')
-rw-r--r-- | openbsc/src/silent_call.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |