From ed3413e39740c78148719696b0903874add580e2 Mon Sep 17 00:00:00 2001 From: aravind sirsikar Date: Fri, 11 Nov 2016 17:15:10 +0530 Subject: Handle packet access reject during EPDAN/PDAN with channel description When PDAN/EPDAN with channel description 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: I096a3bb44a65533b9e9b091925dd5f70a8696d6 --- src/tbf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tbf.h') diff --git a/src/tbf.h b/src/tbf.h index 3205f6e0..e0440535 100644 --- a/src/tbf.h +++ b/src/tbf.h @@ -64,6 +64,7 @@ enum gprs_rlcmac_tbf_dl_ass_state { enum gprs_rlcmac_tbf_ul_ass_state { GPRS_RLCMAC_UL_ASS_NONE = 0, GPRS_RLCMAC_UL_ASS_SEND_ASS, /* send uplink assignment on next RTS */ + GPRS_RLCMAC_UL_ASS_SEND_ASS_REJ, /* send assignment reject next RTS */ GPRS_RLCMAC_UL_ASS_WAIT_ACK, /* wait for PACKET CONTROL ACK */ }; @@ -103,6 +104,7 @@ struct gprs_rlcmac_tbf { struct msgb *create_dl_ass(uint32_t fn, uint8_t ts); struct msgb *create_ul_ass(uint32_t fn, uint8_t ts); + struct msgb *create_packet_access_reject(); GprsMs *ms() const; void set_ms(GprsMs *ms); -- cgit v1.2.3