diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-19 20:47:12 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:10 +0100 |
commit | cedf89092849569a8bc5e89b83d89b421c7bbdfa (patch) | |
tree | dfecfa2a7613c8c87ffc37616421e89a4db1e8aa /src/poll_controller.cpp | |
parent | 621dc2fd010dbcde6c6a202d48d427afbf6a2e1a (diff) |
sba: Create a SBAController that will manage the sbas for a BTS
The PollController is a friend of the SBAController and is allowed
to access the internal list. The list is hidden from everyone else.
This is done because the calculation of timeout should belong into
the PollController and not into the SBAController.
Diffstat (limited to 'src/poll_controller.cpp')
-rw-r--r-- | src/poll_controller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poll_controller.cpp b/src/poll_controller.cpp index 59eef762..461b1a2b 100644 --- a/src/poll_controller.cpp +++ b/src/poll_controller.cpp @@ -51,11 +51,11 @@ void PollController::expireTimedout(int frame_number) gprs_rlcmac_poll_timeout(bts, tbf); } } - llist_for_each_entry_safe(sba, sba2, &gprs_rlcmac_sbas, list) { + llist_for_each_entry_safe(sba, sba2, &m_bts.sba()->m_sbas, list) { elapsed = (frame_number + 2715648 - sba->fn) % 2715648; if (elapsed >= 20 && elapsed < 2715400) { /* sba will be freed here */ - gprs_rlcmac_sba_timeout(sba); + m_bts.sba()->timeout(sba); } } |