From 6b356a58d1269fe4ad449bc868cbc734c6d2a28e Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Fri, 29 Jan 2016 16:39:21 +0100 Subject: tbf: Use TLLI as ID if TFI not yet assigned Currently the old TFI is always used as ID when a PACKET DOWNLINK ASSIGNMENT is generated. This fails if the old TBF has not been fully assigned yet. The MS will then ignore the PDA. This commit changes write_packet_downlink_assignment to accept an additional parameter old_tfi_is_valid and uses the new TBF's TLLI instead of the olf TFI if that parameter is set to false. Sponsored-by: On-Waves ehf --- src/encoding.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/encoding.h') diff --git a/src/encoding.h b/src/encoding.h index 6ee30ac8..12487258 100644 --- a/src/encoding.h +++ b/src/encoding.h @@ -55,7 +55,7 @@ public: int8_t use_egprs); static void write_packet_downlink_assignment(RlcMacDownlink_t * block, - uint8_t old_tfi, uint8_t old_downlink, + bool old_tfi_is_valid, uint8_t old_tfi, uint8_t old_downlink, struct gprs_rlcmac_tbf *tbf, uint8_t poll, uint8_t rrbp, uint8_t alpha, uint8_t gamma, int8_t ta_idx, uint8_t ta_ts, bool use_egprs); -- cgit v1.2.3