aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/rrlp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 13:23:55 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 15:42:38 +0800
commitb2be195b501d8327a493f93bc9fba41f8a699ba4 (patch)
treefb27e7bf7c080946cfbc38b3beea7e90c50e2fcb /openbsc/src/rrlp.c
parentea01ca764fcf0912ac2ccd1a8818640518911a51 (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/rrlp.c')
-rw-r--r--openbsc/src/rrlp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/rrlp.c b/openbsc/src/rrlp.c
index 35044518c..c3b1dbcf4 100644
--- a/openbsc/src/rrlp.c
+++ b/openbsc/src/rrlp.c
@@ -68,16 +68,16 @@ static int subscr_sig_cb(unsigned int subsys, unsigned int signal,
void *handler_data, void *signal_data)
{
struct gsm_subscriber *subscr;
- struct gsm_lchan *lchan;
+ struct gsm_subscriber_connection *conn;
switch (signal) {
case S_SUBSCR_ATTACHED:
/* A subscriber has attached. */
subscr = signal_data;
- lchan = lchan_for_subscr(subscr);
- if (!lchan)
+ conn = connection_for_subscr(subscr);
+ if (!conn)
break;
- send_rrlp_req(lchan);
+ send_rrlp_req(&conn->lchan);
break;
}
return 0;