bts: Remove global state from gprs_rlcmac_rcv_rach

This commit is contained in:
Holger Hans Peter Freyther 2013-10-17 13:46:19 +02:00
parent 698b612188
commit b0250ebeac
3 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -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 */

View File

@ -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: