aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/token_auth.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 12:30:50 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 15:42:21 +0800
commite9ed340425aa5ac90ba78d43c07b6c2facff54bc (patch)
tree1734c603a931b0c2f69147c6831874ab4d1435dd /openbsc/src/token_auth.c
parent667cdd60cae1e145bfbf29dbe7b6da1395eb5f54 (diff)
bsc_api: Cut back on direct lchan usage.
Diffstat (limited to 'openbsc/src/token_auth.c')
-rw-r--r--openbsc/src/token_auth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/token_auth.c b/openbsc/src/token_auth.c
index 7fefea5a4..2608c6668 100644
--- a/openbsc/src/token_auth.c
+++ b/openbsc/src/token_auth.c
@@ -103,8 +103,8 @@ unauth:
if (lchan) {
u_int8_t auth_rand[16];
/* kick the subscriber off the network */
- gsm48_tx_mm_auth_req(lchan, auth_rand, 0);
- gsm48_tx_mm_auth_rej(lchan);
+ gsm48_tx_mm_auth_req(&lchan->conn, auth_rand, 0);
+ gsm48_tx_mm_auth_rej(&lchan->conn);
/* FIXME: close the channel early ?*/
//gsm48_send_rr_Release(lchan);
}
@@ -139,8 +139,8 @@ static int token_sms_cb(unsigned int subsys, unsigned int signal,
lchan = lchan_for_subscr(sms->receiver);
if (lchan) {
/* kick the subscriber off the network */
- gsm48_tx_mm_auth_req(lchan, auth_rand, 0);
- gsm48_tx_mm_auth_rej(lchan);
+ gsm48_tx_mm_auth_req(&lchan->conn, auth_rand, 0);
+ gsm48_tx_mm_auth_rej(&lchan->conn);
/* FIXME: close the channel early ?*/
//gsm48_send_rr_Release(lchan);
}