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.
diff --git a/src/bts.h b/src/bts.h
index 785b730..7d8f422 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -59,6 +59,7 @@
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 @@
#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 @@
{
return trx->bts->bts_data();
}
+
+inline uint8_t gprs_rlcmac_pdch::trx_no() const
+{
+ return trx->trx_no;
+}
#endif
#ifdef __cplusplus