Commit Graph

8 Commits

Author SHA1 Message Date
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 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 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 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 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 03fd8d014f Import upstream version 0.9.13 2011-05-25 13:54:02 -04:00