From e9a138e11111f509f988807bbdc5ca8cce2b3d3d Mon Sep 17 00:00:00 2001 From: aravind sirsikar Date: Tue, 24 Jan 2017 12:36:08 +0530 Subject: Handle packet access reject during packet resource request When Packet resource request is received, PCU will generate the packet access reject if no resources are present. The encoding is done based on section 7.1.3.2.1 and 8.1.2.5 of 44.060 version 7.27.0 Release 7. This patch also includes the test case to validate the generated packet access reject message. This patch is integration tested on Osmo-trx setup with Ettus B210 board and LG F70 MS with some simulation code changes in Osmo-pcu. Change-Id: I05ff25124b58905586caa0c0c37023d69724f121 --- src/tbf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tbf.h') diff --git a/src/tbf.h b/src/tbf.h index 03895953..09e31220 100644 --- a/src/tbf.h +++ b/src/tbf.h @@ -43,6 +43,7 @@ class GprsMs; #define Tassign_agch 0,200000 /* waiting after IMM.ASS confirm */ #define Tassign_pacch 2,0 /* timeout for pacch assigment */ +#define Treject_pacch 0,2000 /* timeout for tbf reject for PRR*/ enum gprs_rlcmac_tbf_state { GPRS_RLCMAC_NULL = 0, /* new created TBF */ @@ -316,6 +317,9 @@ struct gprs_rlcmac_dl_tbf *tbf_alloc_dl_tbf(struct gprs_rlcmac_bts *bts, void tbf_free(struct gprs_rlcmac_tbf *tbf); +struct gprs_rlcmac_ul_tbf *handle_tbf_reject(struct gprs_rlcmac_bts *bts, + GprsMs *ms, uint32_t tlli, uint8_t trx_no, uint8_t ts_no); + int tbf_assign_control_ts(struct gprs_rlcmac_tbf *tbf); void tbf_timer_start(struct gprs_rlcmac_tbf *tbf, unsigned int T, -- cgit v1.2.3