diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-28 15:47:12 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-28 16:12:39 +0800 |
commit | 2412a07965ace5fc425b401438d21ff86ceeb2df (patch) | |
tree | 43f862deafccf9500b8f81621862a708b144f6c7 /openbsc/src/abis_rsl.c | |
parent | 94d625bfa09be748aa1a157da8320bd75761d431 (diff) |
bsc_api: Allocate the subscriber_connection dynamically
This is a big change to the way we use the subscriber
connection. From now on it is is dynamically allocated
and we will slowly move from a 1:1 lchan to conn to
having more than one lchan per connection.
This is the first commit, the subscr_con* methods will
move to gsm_data once the use_count is removed from the
connection, the freeing of the connection will also change.
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r-- | openbsc/src/abis_rsl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index 6c6230f5a..f5ebb771a 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -123,7 +123,8 @@ 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); + if (lchan->conn) + log_set_context(BSC_CTX_SUBSCR, lchan->conn->subscr); return lchan; } |