bts: Remove global state from gprs_rlcmac_rcv_rach
This commit is contained in:
parent
698b612188
commit
b0250ebeac
|
@ -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_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,
|
int gprs_rlcmac_rcv_control_block(bitvec *rlc_block, uint8_t trx, uint8_t ts,
|
||||||
uint32_t fn);
|
uint32_t fn);
|
||||||
|
|
|
@ -1027,9 +1027,9 @@ struct msgb *gprs_rlcmac_send_packet_uplink_assignment(
|
||||||
return msg;
|
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;
|
struct gprs_rlcmac_tbf *tbf;
|
||||||
uint8_t trx, ts = 0;
|
uint8_t trx, ts = 0;
|
||||||
int8_t tfi; /* must be signed */
|
int8_t tfi; /* must be signed */
|
||||||
|
|
|
@ -292,7 +292,8 @@ static int pcu_rx_rach_ind(struct gsm_pcu_if_rach_ind *rach_ind)
|
||||||
|
|
||||||
switch (rach_ind->sapi) {
|
switch (rach_ind->sapi) {
|
||||||
case PCU_IF_SAPI_RACH:
|
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);
|
rach_ind->qta);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue