Commit Graph

38 Commits

Author SHA1 Message Date
Jonathan Santos dbd53c557b Release version 0.9.14-0~jrsantos.2 2011-08-23 12:40:24 -04:00
Harald Welte 1fced2f4d7 GPRS: Fix the parsing/interpretation of the PDP CTX status IE
The byte ordering is a bit odd:  The least significant byte is ahead of
the most significant byte, different from everything else in GSM that
seems to be big-endian.

Thanks to Seungju Kim <admin@manateeshome.com> for repoerting the bug.
2011-08-23 12:38:00 -04:00
Dieter Spaar ac3159af4a LLC: Fix format string 2011-08-23 12:38:00 -04:00
Jonathan Santos 1cc5866319 Release version 0.9.14-0~jrsantos.1 2011-08-23 12:37:37 -04:00
Jonathan Santos 49b430ffc2 Merge branch 'debian' 2011-08-17 15:48:02 -04:00
Jonathan Santos 68e37bff21 Add dependency on libdbi package 2011-08-17 15:47:17 -04:00
Jonathan Santos 52fae478c4 Update libosmocore package dependency to 0.3.2 2011-08-17 15:38:53 -04:00
Jonathan Santos 3688ffd536 Merge commit 'upstream/0.9.14' 2011-08-17 15:34:52 -04:00
Jonathan Santos 5a45b156d4 New upstream version 0.9.14 2011-08-17 15:33:57 -04:00
Jonathan Santos 57ae3aa256 Release version 0.9.13-0~jrsantos.5 2011-08-11 02:58:33 -04:00
Jonathan Santos 6f3c2f1b91 gprs: Also check tlli_new in sgsn_mm_ctx_by_tlli 2011-08-11 02:56:42 -04:00
Jonathan Santos b3994d0dd2 gprs: Change T3302 to 20 seconds 2011-08-11 02:56:36 -04:00
Jonathan Santos 0fa1677013 Release version 0.9.13-0~jrsantos.4 2011-07-31 13:05:14 -04:00
Jonathan Santos a101a5f43e gprs: Fix retry of ATTACH REQUEST from mobile
If, for some reason, the mobile did not receive an ATTACH ACCEPT
it resends an ATTACH REQUEST.  The SGSN then would send a new
ATTACH ACCEPT.  However, after sending the new ATTACH REQUEST, it
was unable to find the GMM context if the mobile uses the old
foreign tlli (as it is allowed to do).  This fixes that.
2011-07-31 12:31:00 -04:00
Jonathan Santos fd7223f7e6 gprs: Fix premature TLLI change
During the GPRS Attach procedure, the SGSN was changing the TLLI
to the new TLLI when sending the second Identity Request.  This
was caused by the sgsn_mm_ctx_by_tlli() function changing the TLLI.
It is usually bad form to have a lookup function change values.
2011-07-31 10:27:52 -04:00
Jonathan Santos 7cfdff76ca Revert "gprs: Fix bug that caused TLLI to change prematurely"
This reverts commit bd92172bf4.
2011-07-31 10:27:31 -04:00
Jonathan Santos a5fee1cb8d Release version 0.9.13-0~jrsantos.3 2011-07-22 13:10:05 -04:00
Jonathan Santos e5b7ad8119 gprs: Reset LLC state when Timer 3350 expires
This works around a problem that occurs if a mobile loses packet
data connectivity, e.g. moves out of coverage or switches over
to a circuit-switched call, while a data transfer is occurring.
The mobile would reset its LLC state, causing it to be
unsynchronized with the SGSN.  Therefore the SGSN would drop
incoming frames until the sequence numbers matched.  This
workaround resets the LLC state in the SGSN if T3350 expires,
indicating that Routing Area Updating Request, Attach Request,
or P-TMSI Realloc Command has failed.
2011-07-21 15:30:41 -04:00
Jonathan Santos 5f7d3cd6d2 gprs: Fix LLC UI window
According to TS 44.064 section 8.4.2, the LLC layer should only
drop UI frames if V(UR)-32 <= N(U) < V(UR).  The code was dropping
frames whenever N(U) < V(UR).  Consequently, large amounts of
packets could be dropped if, e.g., V(UR)==511 and the frame with
N(U)==511 was lost.  All frames would be dropped until the next
time a frame with N(U)==511 is received.
2011-06-23 17:57:06 -04:00
Jonathan Santos 7ad066c5c3 gprs: Suspend user data transmission during Routing Area Updating
TS 24.008 version 9.5.0 Release 9 sec 4.7.5:
     In A/Gb mode, user data transmission in the MS shall be
     suspended during the routing area updating procedure, except
     if the routing area updating procedure is triggered by a PS
     handover procedure as described in 3GPP TS 43.129 [113];
     user data reception shall be possible. User data transmission
     in the network may be suspended during the routing area
     updating procedure.
2011-06-23 17:47:27 -04:00
Jonathan Santos a0fb1bb847 Merge branch 'attach_already_attached' 2011-06-23 17:46:50 -04:00
Jonathan Santos dec0ea8fd2 gprs: Set GMM state to GMM_REGISTERED_NORMAL after ATTACH_COMPLETE received
The SGSN was updating the GMM state when sending the ATTACH_ACCEPT, when
it should enter that state after the ATTACH_COMPLETE is received.
2011-06-23 17:45:38 -04:00
Jonathan Santos 8f3a5a2f0b gprs: Delete GMM and PDP contexts if ATTACH_REQUEST received from already-attached MS
TS 24.008 version 9.5.0 Release 9 sec 4.7.3.1.6:
     If an ATTACH REQUEST message is received in state GMM-REGISTERED
     the network may initiate the GMM common procedures; if it turned
     out that the ATTACH REQUEST message was send by an MS that has
     already been attached, the GMM context, PDP contexts and MBMS
     contexts, if any, are deleted and the new ATTACH REQUEST is
     progressed.
2011-06-23 17:45:19 -04:00
Jonathan Santos 749a666d84 Merge branch 'nexus_s_attach' 2011-06-23 15:37:31 -04:00
Jonathan Santos bd92172bf4 gprs: Fix bug that caused TLLI to change prematurely 2011-06-23 15:30:31 -04:00
Jonathan Santos fe7724f1d4 gprs: Fix bugs that reset LLC sequence numbers improperly 2011-06-23 15:30:31 -04:00
Jonathan Santos ac9341c9c3 gprs: Fix bug where SGSN was sending all LLC UI frames with N(U)=0
Convert foreign TLLIs to local TLLIs for storage in LLME context.
2011-06-23 15:30:31 -04:00
Jonathan Santos eb2730e646 gprs: Fix possible segfault on attach caused by MS Network Capability larger than 4 octets
The SGSN was allowing MS Network Capability of up to 8 octets, but only allocating
storage for 4 octets.

TS 23.060 version 9.7.0 Release 9 section 6.14.2 states:
  To allow for the addition of future features, the SGSN shall
  store the UE Network Capability and the MS Network Capability
  even if either or both is larger than specified in TS 24.008
  [13]/TS 24.301 [102], up to a maximum size of 32 octets for
  each IE.
2011-06-23 15:30:30 -04:00
Jonathan Santos dbf8411b2f gprs: Fix segfault on attach caused by MS Radio Access Capability larger than 14 octets
Newer phones are using a MS Radio Access Capability larger than the
14 octets specified in 04.08 Release 1998 (up to 50 octets in Rel 9).
This caused the SGSN to crash since it only allocated storage for
14 octets but tried to store up to 51 octets.

TS 23.060 version 9.7.0 Release 9 section 6.14.1.1 states:
  To allow for the addition of future radio technologies, frequency
  bands, and other enhancements, the SGSN shall store the MS radio
  access capability even if it is larger than specified in TS 24.008
  [13], up to a maximum size of 255 octets.
2011-06-23 15:30:30 -04:00
Jonathan Santos bab770e493 Merge branch 'allow_all_imsis' 2011-06-10 13:25:22 -04:00
Jonathan Santos 7a148ce262 Release version 0.9.13-0~jrsantos.2 2011-06-10 12:35:44 -04:00
Jonathan Santos 4afdc83614 Merge branch 'debian' 2011-06-10 12:34:21 -04:00
Jonathan Santos 01e4ee6cbd Fix bug that caused dpkg-gencontrol to fail
A bug in debian/control caused "debian/rules binary" to fail with:
  dpkg-gencontrol: error: source package has two conflicting values - openbsc and opensgsn
2011-06-10 12:32:54 -04:00
Jonathan Santos 87f424d6d4 Allow all IMSIs
This reverts commit eafe22ca72 from upstream git
repository.
2011-05-25 14:50:40 -04:00
Jonathan Santos a3fdd24af0 Release version 0.9.13-0~jrsantos.1 2011-05-25 14:40:53 -04:00
Jonathan Santos aada4fe902 Add sarge-compatible debian files 2011-05-25 14:20:31 -04:00
Jonathan Santos 03fd8d014f Import upstream version 0.9.13 2011-05-25 13:54:02 -04:00
Jonathan Santos e7dae79f58 Initial commit 2011-05-25 13:53:10 -04:00