diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-10-14 12:41:19 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-31 16:47:23 +0200 |
commit | 4b380c1d93fa748937fb2b5cd385ee40e59b6a42 (patch) | |
tree | 8f5e2cc5a72bab459e4039fcb893bf3083f5abbe | |
parent | 98b226b6b07b200a3fd28285b2a0b21a328824f8 (diff) |
gprs: Add gross hack to allow everyone to connect to the network
Some phones fail to respond to identity requests, don't send a
GPRS attach accept and others... Only phones with our SIM cards
that can't roam get to this state and are accepted then. Every phone
that is coming from another network is failing right now.
-rw-r--r-- | openbsc/src/gprs/gprs_gmm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index f7a5cde00..5513a49d7 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -694,6 +694,7 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg, #if 0 return gsm48_tx_gmm_att_rej(msg, GMM_CAUSE_IMSI_UNKNOWN); #else +#if 0 /* As a temorary hack, we simply assume that the IMSI exists, * as long as it is part of 'our' network */ char mccmnc[16]; @@ -706,6 +707,9 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg, return gsm48_tx_gmm_att_rej_oldmsg(msg, GMM_CAUSE_GPRS_NOTALLOWED); } +#else +#warning "Allowing everyone to attach" +#endif ctx = sgsn_mm_ctx_alloc(0, &ra_id); if (!ctx) return gsm48_tx_gmm_att_rej_oldmsg(msg, GMM_CAUSE_NET_FAIL); |