aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_l1_if.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-17 20:12:37 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:20:45 +0100
commitb78adcdd11ef0414c2594bada2a37d498d32f1ef (patch)
treecd0bff850d78d4b4f9c53fee407ac202c6feb854 /src/pcu_l1_if.cpp
parent9b30c7f46e2c55aed06cea8d1daa9093f331fb20 (diff)
bts: Introduce a PollController that has the responsibility to poll
For each frame indication received by the BTS the poll controller is asked to expire timedout entries.
Diffstat (limited to 'src/pcu_l1_if.cpp')
-rw-r--r--src/pcu_l1_if.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index ad0887ea..438bfa86 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -494,12 +494,7 @@ bssgp_failed:
static int pcu_rx_time_ind(struct gsm_pcu_if_time_ind *time_ind)
{
- struct gprs_rlcmac_bts *bts = bts_main_data();
- struct gprs_rlcmac_tbf *tbf;
- struct gprs_rlcmac_sba *sba, *sba2;
- uint32_t elapsed;
uint8_t fn13 = time_ind->fn % 13;
- int frame_number = time_ind->fn;
/* omit frame numbers not starting at a MAC block */
if (fn13 != 0 && fn13 != 4 && fn13 != 8)
@@ -509,32 +504,6 @@ static int pcu_rx_time_ind(struct gsm_pcu_if_time_ind *time_ind)
// time_ind->fn % 52);
BTS::main_bts()->set_current_frame_number(time_ind->fn);
-
- /* check for poll timeout */
- llist_for_each_entry(tbf, &gprs_rlcmac_ul_tbfs, list) {
- if (tbf->poll_state == GPRS_RLCMAC_POLL_SCHED) {
- elapsed = (frame_number + 2715648 - tbf->poll_fn)
- % 2715648;
- if (elapsed >= 20 && elapsed < 2715400)
- gprs_rlcmac_poll_timeout(bts, tbf);
- }
- }
- llist_for_each_entry(tbf, &gprs_rlcmac_dl_tbfs, list) {
- if (tbf->poll_state == GPRS_RLCMAC_POLL_SCHED) {
- elapsed = (frame_number + 2715648 - tbf->poll_fn)
- % 2715648;
- if (elapsed >= 20 && elapsed < 2715400)
- gprs_rlcmac_poll_timeout(bts, tbf);
- }
- }
- llist_for_each_entry_safe(sba, sba2, &gprs_rlcmac_sbas, list) {
- elapsed = (frame_number + 2715648 - sba->fn) % 2715648;
- if (elapsed >= 20 && elapsed < 2715400) {
- /* sba will be freed here */
- gprs_rlcmac_sba_timeout(sba);
- }
- }
-
return 0;
}