aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoding.h
diff options
context:
space:
mode:
authoraravind sirsikar <arvind.sirsikar@radisys.com>2016-11-09 16:27:00 +0530
committeraravind sirsikar <arvind.sirsikar@radisys.com>2016-11-09 16:27:00 +0530
commitc0c3afd0794c217e6fc33b18eb9366c8cfe8b020 (patch)
treebc4f133a852deb15453eff0969be95d4be95ed8a /src/encoding.h
parentae4838101a58feb512e88325efcae79f46af8e32 (diff)
Handle Immediate assignment reject
When RACH is received, PCU will generate the Immediate assignment reject message if no resources are present. The encoding is done based on section 9.1.20 of 44.018 version 11.7.0 Release 11. This patch also includes the test case to validate the generated Immediate assignment 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: I3d33e2b9746fa4f338fad0e6b63b1c5f07de6f9b
Diffstat (limited to 'src/encoding.h')
-rw-r--r--src/encoding.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/encoding.h b/src/encoding.h
index 69f8cdc9..79dc32dd 100644
--- a/src/encoding.h
+++ b/src/encoding.h
@@ -52,6 +52,12 @@ public:
GSM_L1_BURST_TYPE_ACCESS_0,
uint8_t sb = 1);
+ static int write_immediate_assignment_reject(
+ bitvec *dest, uint16_t ra,
+ uint32_t ref_fn,
+ enum ph_burst_type burst_type
+ );
+
static void write_packet_uplink_assignment(
struct gprs_rlcmac_bts *bts,
bitvec * dest, uint8_t old_tfi,