diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-26 18:53:16 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:11 +0100 |
commit | 05f8efc1a26426d4f88d768049cf1d35eca55118 (patch) | |
tree | 5eb864c02bede7127029907757fb0307485037f2 /src/bts.h | |
parent | 4f753c64d6a2b28fe5c55d81507c26376ced0427 (diff) |
pdch: Remove the trx_no/ts_no parameter and use/caclulate it on demand
Simplify the depedencies and use the inline functions when we need
to figure out the numbers.
Diffstat (limited to 'src/bts.h')
-rw-r--r-- | src/bts.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -59,6 +59,7 @@ struct gprs_rlcmac_pdch { gprs_rlcmac_bts *bts_data() const; BTS *bts() const; + uint8_t trx_no() const; #endif uint8_t m_is_enabled; /* TS is enabled */ @@ -76,11 +77,8 @@ struct gprs_rlcmac_pdch { #ifdef __cplusplus private: - int rcv_data_block_acknowledged( - uint8_t trx, uint8_t ts, - uint8_t *data, uint8_t len, int8_t rssi); - int rcv_control_block(bitvec *rlc_block, uint8_t trx, uint8_t ts, - uint32_t fn); + int rcv_data_block_acknowledged(uint8_t *data, uint8_t len, int8_t rssi); + int rcv_control_block(bitvec *rlc_block, uint32_t fn); #endif }; @@ -204,6 +202,11 @@ inline gprs_rlcmac_bts *gprs_rlcmac_pdch::bts_data() const { return trx->bts->bts_data(); } + +inline uint8_t gprs_rlcmac_pdch::trx_no() const +{ + return trx->trx_no; +} #endif #ifdef __cplusplus |