diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-26 20:21:11 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:11 +0100 |
commit | 42de18f347fe72bedf39a2498bc0f40db78d3468 (patch) | |
tree | aeaadce098814616e71dff0158083441e5fe9fa1 /src | |
parent | d9262b3b550d61ece3c3328608bf51e643c856eb (diff) |
debug_dl_ass_idle: Remove the feature as it is obviously broken
strncpy takes three arguments but only two are given. This feature
would also only work if there is one tbf at a time.
Diffstat (limited to 'src')
-rw-r--r-- | src/gprs_rlcmac_data.cpp | 16 | ||||
-rw-r--r-- | src/tbf.cpp | 5 |
2 files changed, 0 insertions, 21 deletions
diff --git a/src/gprs_rlcmac_data.cpp b/src/gprs_rlcmac_data.cpp index b016c764..27e51d0e 100644 --- a/src/gprs_rlcmac_data.cpp +++ b/src/gprs_rlcmac_data.cpp @@ -46,10 +46,6 @@ extern void *tall_pcu_ctx; #define POLLING_ASSIGNMENT_UL 1 -#ifdef DEBUG_DL_ASS_IDLE - char debug_imsi[16]; -#endif - /* * UL data block flow */ @@ -828,22 +824,11 @@ void gprs_rlcmac_trigger_downlink_assignment( struct gprs_rlcmac_tbf *tbf, struct gprs_rlcmac_tbf *old_tbf, const char *imsi) { -#ifdef DEBUG_DL_ASS_IDLE - strncpy(debug_imsi, imsi); - LOGP(DRLCMAC, LOGL_ERROR, "**** DEBUGGING DOWNLINK ASSIGNMENT ****\n"); -#endif - /* stop pending timer */ tbf->stop_timer(); /* check for downlink tbf: */ if (old_tbf) { -#ifdef DEBUG_DL_ASS_IDLE - LOGP(DRLCMAC, LOGL_ERROR, "We must wait for current TBF to be " - "released.\n"); - /* wait one second until assignment */ - tbf_timer_start(tbf, 1234, 1,0); -#else LOGP(DRLCMAC, LOGL_DEBUG, "Send dowlink assignment on " "PACCH, because %s TBF=%d exists for TLLI=0x%08x\n", (old_tbf->direction == GPRS_RLCMAC_UL_TBF) @@ -856,7 +841,6 @@ void gprs_rlcmac_trigger_downlink_assignment( tbf->state_flags |= (1 << GPRS_RLCMAC_FLAG_PACCH); /* start timer */ tbf_timer_start(tbf, 0, Tassign_pacch); -#endif } else { LOGP(DRLCMAC, LOGL_DEBUG, "Send dowlink assignment for TBF=%d on PCH, no TBF exist (IMSI=%s)\n", tbf->tfi, imsi); if (!imsi || strlen(imsi) < 3) { diff --git a/src/tbf.cpp b/src/tbf.cpp index 0321c400..73b8b1c8 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -611,11 +611,6 @@ void gprs_rlcmac_tbf::handle_timeout() num_T_exp++; switch (T) { -#ifdef DEBUG_DL_ASS_IDLE - case 1234: - gprs_rlcmac_trigger_downlink_assignment(tbf, NULL, debug_imsi); - break; -#endif case 0: /* assignment */ if ((state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH))) { if (state_is(GPRS_RLCMAC_ASSIGN)) { |