aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-17 13:46:19 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:20:45 +0100
commitb0250ebeac1d1a20c0448a81f3609ddf3ec7517d (patch)
tree32f1b54d01fd735febb49904145ca63ff845db0e /src
parent698b6121883f2f50ba95d72f900894366bc7c082 (diff)
bts: Remove global state from gprs_rlcmac_rcv_rach
Diffstat (limited to 'src')
-rw-r--r--src/gprs_rlcmac.h2
-rw-r--r--src/gprs_rlcmac_data.cpp4
-rw-r--r--src/pcu_l1_if.cpp3
3 files changed, 5 insertions, 4 deletions
diff --git a/src/gprs_rlcmac.h b/src/gprs_rlcmac.h
index 5ce503b..192f279 100644
--- a/src/gprs_rlcmac.h
+++ b/src/gprs_rlcmac.h
@@ -188,7 +188,7 @@ int gprs_rlcmac_poll_timeout(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf
int gprs_rlcmac_sba_timeout(struct gprs_rlcmac_sba *sba);
-int gprs_rlcmac_rcv_rach(uint8_t ra, uint32_t Fn, int16_t qta);
+int gprs_rlcmac_rcv_rach(struct gprs_rlcmac_bts *bts, uint8_t ra, uint32_t Fn, int16_t qta);
int gprs_rlcmac_rcv_control_block(bitvec *rlc_block, uint8_t trx, uint8_t ts,
uint32_t fn);
diff --git a/src/gprs_rlcmac_data.cpp b/src/gprs_rlcmac_data.cpp
index ff811c6..b95bf2d 100644
--- a/src/gprs_rlcmac_data.cpp
+++ b/src/gprs_rlcmac_data.cpp
@@ -1027,9 +1027,9 @@ struct msgb *gprs_rlcmac_send_packet_uplink_assignment(
return msg;
}
-int gprs_rlcmac_rcv_rach(uint8_t ra, uint32_t Fn, int16_t qta)
+int gprs_rlcmac_rcv_rach(struct gprs_rlcmac_bts *bts,
+ uint8_t ra, uint32_t Fn, int16_t qta)
{
- struct gprs_rlcmac_bts *bts = gprs_rlcmac_bts;
struct gprs_rlcmac_tbf *tbf;
uint8_t trx, ts = 0;
int8_t tfi; /* must be signed */
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index d4058e7..add1f4f 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -292,7 +292,8 @@ static int pcu_rx_rach_ind(struct gsm_pcu_if_rach_ind *rach_ind)
switch (rach_ind->sapi) {
case PCU_IF_SAPI_RACH:
- rc = gprs_rlcmac_rcv_rach(rach_ind->ra, rach_ind->fn,
+ rc = gprs_rlcmac_rcv_rach(gprs_rlcmac_bts,
+ rach_ind->ra, rach_ind->fn,
rach_ind->qta);
break;
default: