From dea63b96e0a918f5430b982f86c21c5ed0bc0647 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 26 Oct 2013 18:56:43 +0200 Subject: sba/pdch: Use thepdch to look up a sba for a frame number --- src/sba.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sba.cpp') diff --git a/src/sba.cpp b/src/sba.cpp index 73968118..d87a9a3b 100644 --- a/src/sba.cpp +++ b/src/sba.cpp @@ -98,6 +98,11 @@ gprs_rlcmac_sba *SBAController::find(uint8_t trx, uint8_t ts, uint32_t fn) return NULL; } +gprs_rlcmac_sba *SBAController::find(const gprs_rlcmac_pdch *pdch, uint32_t fn) +{ + return find(pdch->trx_no(), pdch->ts_no, fn); +} + uint32_t SBAController::sched(uint8_t trx, uint8_t ts, uint32_t fn, uint8_t block_nr) { uint32_t sba_fn; -- cgit v1.2.3