aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_08.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 14:09:34 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 14:09:34 +0800
commit7bc5ba3674bd14e09816afe8c252c04bd8532461 (patch)
treef59b4d87f3c07df14a24e4ac304620325532fcc2 /openbsc/src/gsm_04_08.c
parentdc5db2424de21b3017aee48ea780ba8a9865b987 (diff)
bsc_api: Remove lchan from LU Reject...
Remove the lchan from the signature, the removal of the msg->lchan will follow as a next step.
Diffstat (limited to 'openbsc/src/gsm_04_08.c')
-rw-r--r--openbsc/src/gsm_04_08.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 5774995f1..c756d47a4 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -306,15 +306,13 @@ void gsm0408_clear_request(struct gsm_subscriber_connection* conn, uint32_t caus
}
/* Chapter 9.2.14 : Send LOCATION UPDATING REJECT */
-int gsm0408_loc_upd_rej(struct gsm_lchan *lchan, u_int8_t cause)
+int gsm0408_loc_upd_rej(struct gsm_subscriber_connection *conn, u_int8_t cause)
{
- struct gsm_subscriber_connection *conn;
- struct gsm_bts *bts = lchan->ts->trx->bts;
+ struct gsm_bts *bts = conn->bts;
struct msgb *msg = gsm48_msgb_alloc();
struct gsm48_hdr *gh;
- msg->lchan = lchan;
- conn = &lchan->conn;
+ msg->lchan = conn->lchan;
gh = (struct gsm48_hdr *) msgb_put(msg, sizeof(*gh) + 1);
gh->proto_discr = GSM48_PDISC_MM;
@@ -324,7 +322,7 @@ int gsm0408_loc_upd_rej(struct gsm_lchan *lchan, u_int8_t cause)
LOGP(DMM, LOGL_INFO, "Subscriber %s: LOCATION UPDATING REJECT "
"LAC=%u BTS=%u\n", conn->subscr ?
subscr_name(conn->subscr) : "unknown",
- lchan->ts->trx->bts->location_area_code, lchan->ts->trx->bts->nr);
+ bts->location_area_code, bts->nr);
counter_inc(bts->network->stats.loc_upd_resp.reject);
@@ -431,7 +429,7 @@ static void loc_upd_rej_cb(void *data)
struct gsm_bts *bts = lchan->ts->trx->bts;
release_loc_updating_req(conn);
- gsm0408_loc_upd_rej(lchan, bts->network->reject_cause);
+ gsm0408_loc_upd_rej(conn, bts->network->reject_cause);
lchan_auto_release(lchan);
}
@@ -500,7 +498,7 @@ static int mm_rx_loc_upd_req(struct msgb *msg)
if (conn->loc_operation) {
DEBUGPC(DMM, "ignoring request due an existing one: %p.\n",
conn->loc_operation);
- gsm0408_loc_upd_rej(lchan, GSM48_REJECT_PROTOCOL_ERROR);
+ gsm0408_loc_upd_rej(conn, GSM48_REJECT_PROTOCOL_ERROR);
return 0;
}