From 741d25cb6f8c0c1522cf6d1be2fea49356ecd4bd Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Wed, 20 Jan 2016 13:38:15 +0100 Subject: bssgp: Ignore downlink BSSGP RA Cap IE That IE may contain inaccurate or completely bogus data. This commit disables the parsing. Note that this should be replaced by a config option. Sponsored-by: On-Waves ehf --- src/gprs_bssgp_pcu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp index c66dbae4..5eefdefd 100644 --- a/src/gprs_bssgp_pcu.cpp +++ b/src/gprs_bssgp_pcu.cpp @@ -111,7 +111,9 @@ static int gprs_bssgp_pcu_rx_dl_ud(struct msgb *msg, struct tlv_parsed *tp) char imsi[16] = "000"; uint8_t ms_class = 0; uint8_t egprs_ms_class = 0; +#if 0 MS_Radio_Access_capability_t rac; +#endif budh = (struct bssgp_ud_hdr *)msgb_bssgph(msg); tlli = ntohl(budh->tlli); @@ -136,6 +138,7 @@ static int gprs_bssgp_pcu_rx_dl_ud(struct msgb *msg, struct tlv_parsed *tp) * will listen to all paging blocks. */ parse_imsi(tp, imsi); +#if 0 /* Do not rely on this IE. TODO: make this configurable */ /* parse ms radio access capability */ if (parse_ra_cap(tp, &rac) >= 0) { /* Get the EGPRS class from the RA capability */ @@ -145,6 +148,7 @@ static int gprs_bssgp_pcu_rx_dl_ud(struct msgb *msg, struct tlv_parsed *tp) LOGP(DBSSGP, LOGL_DEBUG, "Got downlink MS class %d/%d\n", ms_class, egprs_ms_class); } +#endif /* get lifetime */ uint16_t delay_csec = 0xffff; -- cgit v1.2.3