tweak ..rcvmsg_iu()'s sai arg.

It was a uint16_t*, but is passed as a uint16_t, and never used anyway, yet.
This commit is contained in:
Neels Hofmeyr
2016-01-10 22:50:11 +01:00
parent 5d145b5477
commit 2449c0ce58
3 changed files with 5 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ int gsm48_tx_gsm_deact_pdp_acc(struct sgsn_pdp_ctx *pdp);
int gsm0408_gprs_rcvmsg_gb(struct msgb *msg, struct gprs_llc_llme *llme);
int gsm0408_gprs_rcvmsg_iu(struct msgb *msg, struct gprs_ra_id *ra_id,
uint16_t *sai);
uint16_t sai);
int gsm0408_gprs_force_reattach(struct sgsn_mm_ctx *mmctx);
int gsm0408_gprs_force_reattach_oldmsg(struct msgb *msg);
void gsm0408_gprs_access_granted(struct sgsn_mm_ctx *mmctx);

View File

@@ -4,6 +4,7 @@ struct msgb;
struct gprs_ra_id;
typedef int (* iu_recv_cb_t )(struct msgb *msg, struct gprs_ra_id *ra_id,
uint16_t *sai);
/* TODO is ra_id only used for gprs? ^ */
uint16_t sai);
int iu_tx(struct msgb *msg, uint8_t sapi);

View File

@@ -2157,7 +2157,7 @@ int gsm0408_gprs_force_reattach(struct sgsn_mm_ctx *mmctx)
/* Main entry point for incoming 04.08 GPRS messages from Iu */
int gsm0408_gprs_rcvmsg_iu(struct msgb *msg, struct gprs_ra_id *ra_id,
uint16_t *sai)
uint16_t sai)
{
struct gsm48_hdr *gh = (struct gsm48_hdr *) msgb_gmmh(msg);
uint8_t pdisc = gh->proto_discr & 0x0f;
@@ -2172,7 +2172,7 @@ int gsm0408_gprs_rcvmsg_iu(struct msgb *msg, struct gprs_ra_id *ra_id,
if (ra_id)
memcpy(&mmctx->ra, ra_id, sizeof(mmctx->ra));
//if (sai)
//mmctx->iu.sai = *sai;
//mmctx->iu.sai = sai;
}
/* MMCTX can be NULL */