aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/gprs_llc.c
diff options
context:
space:
mode:
authorJonathan Santos <jrsantos@jonathanrsantos.com>2011-06-10 17:25:48 -0400
committerJonathan Santos <jrsantos@jonathanrsantos.com>2011-06-23 17:47:27 -0400
commit7ad066c5c380a93aa525356ff588c1f8776ad4a2 (patch)
tree98832d5989a324ebb78cf0c8762fa39fa56f4dc4 /src/gprs/gprs_llc.c
parenta0fb1bb84765bfe3148d55a6da57c007a5ffe895 (diff)
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.
Diffstat (limited to 'src/gprs/gprs_llc.c')
-rw-r--r--src/gprs/gprs_llc.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gprs/gprs_llc.c b/src/gprs/gprs_llc.c
index 37bd8804f..0b4a5de94 100644
--- a/src/gprs/gprs_llc.c
+++ b/src/gprs/gprs_llc.c
@@ -350,6 +350,12 @@ int gprs_llc_tx_ui(struct msgb *msg, uint8_t sapi, int command,
return -EFBIG;
}
+ if ((sapi != GPRS_SAPI_GMM) && lle->llme->suspended) {
+ LOGP(DLLC, LOGL_DEBUG, "LLC TX: suspended TLLI 0x08x, "
+ "dropping UI frame\n", msgb_tlli(msg));
+ return 0;
+ }
+
/* Update LLE's (BVCI, NSEI) tuple */
lle->llme->bvci = msgb_bvci(msg);
lle->llme->nsei = msgb_nsei(msg);
@@ -846,6 +852,18 @@ int gprs_llgmm_assign(struct gprs_llc_llme *llme,
return 0;
}
+int gprs_llgmm_suspend(struct gprs_llc_llme* llme)
+{
+ llme->suspended = 1;
+ return 0;
+}
+
+int gprs_llgmm_resume(struct gprs_llc_llme* llme)
+{
+ llme->suspended = 0;
+ return 0;
+}
+
int gprs_llc_init(const char *cipher_plugin_path)
{
return gprs_cipher_load(cipher_plugin_path);