pespin has uploaded this change for review.

View Change

ta_control: Reset state during lchan deactivation

Otherwise next time the lchan is activated, its ta_ctrl.skip_block_num
will be different based on previous lchan state.

Change-Id: I2aacbbc5b2db46c17b1266b5b5e84d8286d0cf83
---
M src/common/lchan.c
1 file changed, 2 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/91/41791/1
diff --git a/src/common/lchan.c b/src/common/lchan.c
index 0afc294..7123cee 100644
--- a/src/common/lchan.c
+++ b/src/common/lchan.c
@@ -34,6 +34,7 @@
#include <osmo-bts/l1sap.h>
#include <osmo-bts/bts_model.h>
#include <osmo-bts/asci.h>
+#include <osmo-bts/ta_control.h>
#include <errno.h>

static const struct value_string lchan_s_names[] = {
@@ -325,6 +326,7 @@
lchan->pending_rel_ind_msg = NULL;
msgb_free(lchan->pending_chan_activ);
lchan->pending_chan_activ = NULL;
+ lchan_ms_ta_ctrl_reset(lchan);
/* fall through */
default:
if (lchan->early_rr_ia) {

To view, visit change 41791. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I2aacbbc5b2db46c17b1266b5b5e84d8286d0cf83
Gerrit-Change-Number: 41791
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>