tbf_ul_fsm_ctx: Properly define tbf backptr as ul_tbf
Since the tbf_fsm was split recently into tbf_dl_fsm and tbf_ul_fsm,
each has now its own ctx strucvture, which can hold the proper tbf
subclass.
Change-Id: I7741d524a14437caf4c92b9c09e19762eb272e30
diff --git a/src/tbf_fsm.h b/src/tbf_fsm.h
index feb9e04..a62e72d 100644
--- a/src/tbf_fsm.h
+++ b/src/tbf_fsm.h
@@ -63,7 +63,10 @@
};
struct tbf_ul_fsm_ctx {
- struct gprs_rlcmac_tbf *tbf; /* back pointer */
+ union { /* back pointer. union used to easily access superclass from ctx */
+ struct gprs_rlcmac_tbf *tbf;
+ struct gprs_rlcmac_ul_tbf *ul_tbf;
+ };
uint32_t state_flags;
unsigned int T_release; /* Timer to be used to end release: T3169 or T3195 */
};