diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-19 21:10:38 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:10 +0100 |
commit | 34bd8bdf30769b5aab50b87045ff2b621429c7be (patch) | |
tree | 2f3fcf6daeacb0666a09bacff10cb30275f31720 /src/poll_controller.cpp | |
parent | 9f0c1d216a0596f733c55d787ef0eb0693362d49 (diff) |
bts/tbf: Move the lists into the BTS and do the look-up from the BTS
The list belongs to the BTS. This makes cleaning this up more easy
and establishes a hierachy of resources that start from the BTS. The
debug_diagram code is now broken.
Diffstat (limited to 'src/poll_controller.cpp')
-rw-r--r-- | src/poll_controller.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/poll_controller.cpp b/src/poll_controller.cpp index 461b1a2b..115a68f2 100644 --- a/src/poll_controller.cpp +++ b/src/poll_controller.cpp @@ -21,6 +21,7 @@ */ #include <poll_controller.h> +#include <bts.h> #include <tbf.h> PollController::PollController(BTS& bts) @@ -35,7 +36,7 @@ void PollController::expireTimedout(int frame_number) uint32_t elapsed; /* check for poll timeout */ - llist_for_each_entry(tbf, &gprs_rlcmac_ul_tbfs, list) { + llist_for_each_entry(tbf, &bts->ul_tbfs, list) { if (tbf->poll_state == GPRS_RLCMAC_POLL_SCHED) { elapsed = (frame_number + 2715648 - tbf->poll_fn) % 2715648; @@ -43,7 +44,7 @@ void PollController::expireTimedout(int frame_number) gprs_rlcmac_poll_timeout(bts, tbf); } } - llist_for_each_entry(tbf, &gprs_rlcmac_dl_tbfs, list) { + llist_for_each_entry(tbf, &bts->dl_tbfs, list) { if (tbf->poll_state == GPRS_RLCMAC_POLL_SCHED) { elapsed = (frame_number + 2715648 - tbf->poll_fn) % 2715648; |