diff options
author | aravind sirsikar <arvind.sirsikar@radisys.com> | 2017-01-24 12:36:08 +0530 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-01-24 13:11:51 +0000 |
commit | e9a138e11111f509f988807bbdc5ca8cce2b3d3d (patch) | |
tree | 5c957d735e22ffad0cdc65e842b39a9e6c61ad6f /src/bts.cpp | |
parent | 1d8744ce967f038e4bede584845b8326d9f66c2a (diff) |
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
Diffstat (limited to 'src/bts.cpp')
-rw-r--r-- | src/bts.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bts.cpp b/src/bts.cpp index b4e18e3d..25cbc60f 100644 --- a/src/bts.cpp +++ b/src/bts.cpp @@ -1356,8 +1356,12 @@ void gprs_rlcmac_pdch::rcv_resource_request(Packet_Resource_Request_t *request, egprs_ms_class); ul_tbf = tbf_alloc_ul(bts_data(), trx_no(), ms_class, egprs_ms_class, tlli, ta, ms); - if (!ul_tbf) + + if (!ul_tbf) { + handle_tbf_reject(bts_data(), ms, tlli, + trx_no(), ts_no); return; + } /* set control ts to current MS's TS, until assignment complete */ LOGP(DRLCMAC, LOGL_DEBUG, "Change control TS to %d until assinment is complete.\n", ts_no); |