bsc_api: Cut back on direct lchan usage.
diff --git a/openbsc/src/token_auth.c b/openbsc/src/token_auth.c
index 7fefea5..2608c66 100644
--- a/openbsc/src/token_auth.c
+++ b/openbsc/src/token_auth.c
@@ -103,8 +103,8 @@
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 @@
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);
}