From 94d625bfa09be748aa1a157da8320bd75761d431 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 23 Jun 2010 19:42:57 +0800 Subject: Revert "bsc_api: Move debug context for subscriber into the bsc_api.c" This is breaking the filtering for the Measurement Report case, revert the patch for now. This reverts commit 69e8f8285bf080ad2050fbc20f861bc8621e5c75. --- openbsc/src/abis_rsl.c | 1 + openbsc/src/bsc_api.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'openbsc/src') diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index 6a905d252..6c6230f5a 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -123,6 +123,7 @@ struct gsm_lchan *lchan_lookup(struct gsm_bts_trx *trx, u_int8_t chan_nr) lchan = &ts->lchan[lch_idx]; log_set_context(BSC_CTX_LCHAN, lchan); + log_set_context(BSC_CTX_SUBSCR, lchan->conn.subscr); return lchan; } diff --git a/openbsc/src/bsc_api.c b/openbsc/src/bsc_api.c index 74ae8f5de..cac08be09 100644 --- a/openbsc/src/bsc_api.c +++ b/openbsc/src/bsc_api.c @@ -28,7 +28,6 @@ #include #include #include -#include #include @@ -95,7 +94,6 @@ int gsm0408_rcvmsg(struct msgb *msg, uint8_t link_id) conn = &msg->lchan->conn; if (conn->allocated) { - log_set_context(BSC_CTX_SUBSCR, conn->subscr); api->dtap(conn, msg); } else { /* accept the connection or close the lchan */ -- cgit v1.2.3