aboutsummaryrefslogtreecommitdiffstats
path: root/src/abis_rsl.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-02-07 00:48:17 +0000
committerHarald Welte <laforge@gnumonks.org>2009-02-07 00:48:17 +0000
commite79769b926265c4f7f68824a71e4b849d67551e2 (patch)
tree4133fd55f726e0450bfb4d090124361e94ece2e3 /src/abis_rsl.c
parent33ba752057906f949a2ac24059bef1485684ccb2 (diff)
make sure certain functions are per TRX, not per BTS, such as
* rsl_chan_activate() * rsl_bcch_info() * rsl_sacch_filling()
Diffstat (limited to 'src/abis_rsl.c')
-rw-r--r--src/abis_rsl.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/abis_rsl.c b/src/abis_rsl.c
index 0fa32eddc..1c78bf72c 100644
--- a/src/abis_rsl.c
+++ b/src/abis_rsl.c
@@ -220,7 +220,7 @@ static struct msgb *rsl_msgb_alloc(void)
}
/* Send a BCCH_INFO message as per Chapter 8.5.1 */
-int rsl_bcch_info(struct gsm_bts *bts, u_int8_t type,
+int rsl_bcch_info(struct gsm_bts_trx *trx, u_int8_t type,
const u_int8_t *data, int len)
{
struct abis_rsl_dchan_hdr *dh;
@@ -233,12 +233,12 @@ int rsl_bcch_info(struct gsm_bts *bts, u_int8_t type,
msgb_tv_put(msg, RSL_IE_SYSINFO_TYPE, type);
msgb_tlv_put(msg, RSL_IE_FULL_BCCH_INFO, len, data);
- msg->trx = bts->c0;
+ msg->trx = trx;
return abis_rsl_sendmsg(msg);
}
-int rsl_sacch_filling(struct gsm_bts *bts, u_int8_t type,
+int rsl_sacch_filling(struct gsm_bts_trx *trx, u_int8_t type,
const u_int8_t *data, int len)
{
struct abis_rsl_common_hdr *ch;
@@ -251,13 +251,13 @@ int rsl_sacch_filling(struct gsm_bts *bts, u_int8_t type,
msgb_tv_put(msg, RSL_IE_SYSINFO_TYPE, type);
msgb_tl16v_put(msg, RSL_IE_L3_INFO, len, data);
- msg->trx = bts->c0;
+ msg->trx = trx;
return abis_rsl_sendmsg(msg);
}
/* Chapter 8.4.1 */
-int rsl_chan_activate(struct gsm_bts *bts, u_int8_t chan_nr,
+int rsl_chan_activate(struct gsm_bts_trx *trx, u_int8_t chan_nr,
u_int8_t act_type,
struct rsl_ie_chan_mode *chan_mode,
struct rsl_ie_chan_ident *chan_ident,
@@ -286,6 +286,8 @@ int rsl_chan_activate(struct gsm_bts *bts, u_int8_t chan_nr,
msgb_tv_put(msg, RSL_IE_MS_POWER, ms_power);
msgb_tv_put(msg, RSL_IE_TIMING_ADVANCE, ta);
+ msg->trx = trx;
+
return abis_rsl_sendmsg(msg);
}
@@ -349,6 +351,8 @@ int rsl_chan_activate_lchan(struct gsm_lchan *lchan, u_int8_t act_type,
msgb_tv_put(msg, RSL_IE_MS_POWER, ms_power);
msgb_tv_put(msg, RSL_IE_TIMING_ADVANCE, ta);
+ msg->trx = lchan->ts->trx;
+
return abis_rsl_sendmsg(msg);
}