aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac_data.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-26 19:49:16 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:11 +0100
commit40cfaa6837827bc1b5812bca17aa043b7ec67cf7 (patch)
treeae8df189b9ec3dcd86d40610dddac27091ba580d /src/gprs_rlcmac_data.cpp
parent7292373f922da0561808a3dbdeef2710c7181c97 (diff)
bts: Move rcv_imm_ass_cnf into the bts code
Diffstat (limited to 'src/gprs_rlcmac_data.cpp')
-rw-r--r--src/gprs_rlcmac_data.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/gprs_rlcmac_data.cpp b/src/gprs_rlcmac_data.cpp
index 7e4ee132..00afa862 100644
--- a/src/gprs_rlcmac_data.cpp
+++ b/src/gprs_rlcmac_data.cpp
@@ -1002,43 +1002,3 @@ void gprs_rlcmac_trigger_downlink_assignment(
}
}
-int gprs_rlcmac_imm_ass_cnf(BTS *bts, uint8_t *data, uint32_t fn)
-{
- struct gprs_rlcmac_tbf *tbf;
- uint8_t plen;
- uint32_t tlli;
-
- /* move to IA Rest Octets */
- plen = data[0] >> 2;
- data += 1 + plen;
-
- if ((*data & 0xf0) != 0xd0) {
- LOGP(DRLCMAC, LOGL_ERROR, "Got IMM.ASS confirm, but rest "
- "octets do not start with bit sequence 'HH01' "
- "(Packet Downlink Assignment)\n");
- return -EINVAL;
- }
-
- /* get TLLI from downlink assignment */
- tlli = (*data++) << 28;
- tlli |= (*data++) << 20;
- tlli |= (*data++) << 12;
- tlli |= (*data++) << 4;
- tlli |= (*data++) >> 4;
-
- tbf = bts->tbf_by_tlli(tlli, GPRS_RLCMAC_DL_TBF);
- if (!tbf) {
- LOGP(DRLCMAC, LOGL_ERROR, "Got IMM.ASS confirm, but TLLI=%08x "
- "does not exit\n", tlli);
- return -EINVAL;
- }
-
- LOGP(DRLCMAC, LOGL_DEBUG, "Got IMM.ASS confirm for TLLI=%08x\n", tlli);
-
- if (tbf->dir.dl.wait_confirm) {
- tbf_timer_start(tbf, 0, Tassign_agch);
- }
-
- return 0;
-}
-