bts: Remove global state from gprs_rlcmac_add_paging

This commit is contained in:
Holger Hans Peter Freyther 2013-10-17 15:51:39 +02:00
parent ee7a535608
commit 1af73f6c81
3 changed files with 4 additions and 4 deletions

View File

@ -278,9 +278,9 @@ int gprs_rlcmac_rcv_block(struct gprs_rlcmac_bts *bts,
}
/* add paging to paging queue(s) */
int gprs_rlcmac_add_paging(uint8_t chan_needed, uint8_t *identity_lv)
int gprs_rlcmac_add_paging(struct gprs_rlcmac_bts *bts,
uint8_t chan_needed, uint8_t *identity_lv)
{
struct gprs_rlcmac_bts *bts = gprs_rlcmac_bts;
uint8_t l, trx, ts, any_tbf = 0;
struct gprs_rlcmac_tbf *tbf;
struct gprs_rlcmac_paging *pag;

View File

@ -239,7 +239,7 @@ int gprs_rlcmac_rcv_rts_block(uint8_t trx, uint8_t ts, uint16_t arfcn,
int gprs_rlcmac_imm_ass_cnf(uint8_t *data, uint32_t fn);
int gprs_rlcmac_add_paging(uint8_t chan_needed, uint8_t *identity_lv);
int gprs_rlcmac_add_paging(struct gprs_rlcmac_bts *bts, uint8_t chan_needed, uint8_t *identity_lv);
struct gprs_rlcmac_paging *gprs_rlcmac_dequeue_paging(
struct gprs_rlcmac_pdch *pdch);

View File

@ -551,7 +551,7 @@ static int pcu_rx_pag_req(struct gsm_pcu_if_pag_req *pag_req)
LOGP(DL1IF, LOGL_DEBUG, "Paging request received: chan_needed=%d "
"length=%d\n", pag_req->chan_needed, pag_req->identity_lv[0]);
return gprs_rlcmac_add_paging(pag_req->chan_needed,
return gprs_rlcmac_add_paging(gprs_rlcmac_bts, pag_req->chan_needed,
pag_req->identity_lv);
}