aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac_data.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-07-06 07:40:08 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2012-07-06 07:40:08 +0200
commitb3c6f6c716d4495b0f664b4d0da1a4708fb1d0f2 (patch)
treed44abf4a6b1553cc5744e6163c27ff95a1275937 /src/gprs_rlcmac_data.cpp
parentd679009a2dbe88869d699060bac40139d79cbd23 (diff)
Receive cell informations via PCU socket interface
These informations provide RAI, timers, counters and other attributes to the BSSGP and RLC/MAC processes. The attributes are stored in gprs_rlcmac_bts global structure.
Diffstat (limited to 'src/gprs_rlcmac_data.cpp')
-rw-r--r--src/gprs_rlcmac_data.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gprs_rlcmac_data.cpp b/src/gprs_rlcmac_data.cpp
index 018ef3ee..c88ca043 100644
--- a/src/gprs_rlcmac_data.cpp
+++ b/src/gprs_rlcmac_data.cpp
@@ -925,7 +925,7 @@ do_resend:
/* now we still have untransmitted LLC data, so we fill mac block */
index = tbf->dir.dl.v_s & mod_sns_half;
data = tbf->rlc_block[index];
- switch (bts->cs) {
+ switch (bts->initial_cs) {
case 2: /* CS-2 */
block_length = 34;
block_data = 33;
@@ -1218,12 +1218,8 @@ int gprs_rlcmac_downlink_ack(struct gprs_rlcmac_tbf *tbf, uint8_t final,
/* no message, start T3193, change state to RELEASE */
LOGP(DRLCMACDL, LOGL_DEBUG, "- No new message, so we "
"release.\n");
- /* use T3192 for T3193 */
- if (bts->t3192_msec)
- tbf_timer_start(tbf, 3193, bts->t3192_msec / 1000,
- bts->t3192_msec & 1000);
- else
- tbf_timer_start(tbf, 3193, T3193); /* max T3192 */
+ /* start T3193 */
+ tbf_timer_start(tbf, 3193, T3193);
tbf_new_state(tbf, GPRS_RLCMAC_WAIT_RELEASE);
return 0;