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/chan_alloc.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/chan_alloc.c')
-rw-r--r-- | openbsc/src/chan_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index 480949698..d6e4ff172 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c @@ -396,7 +396,7 @@ static struct gsm_lchan* lchan_find(struct gsm_bts *bts, struct gsm_subscriber * return NULL; } -struct gsm_lchan *lchan_for_subscr(struct gsm_subscriber *subscr) +struct gsm_subscriber_connection *connection_for_subscr(struct gsm_subscriber *subscr) { struct gsm_bts *bts; struct gsm_network *net = subscr->net; @@ -405,7 +405,7 @@ struct gsm_lchan *lchan_for_subscr(struct gsm_subscriber *subscr) llist_for_each_entry(bts, &net->bts_list, list) { lchan = lchan_find(bts, subscr); if (lchan) - return lchan; + return &lchan->conn; } return NULL; |