diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-18 17:16:26 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-29 10:53:32 +0200 |
commit | e2e004e7a91a3cd680c11364d9cb8cd21c714a8b (patch) | |
tree | ef0260a7139092f77de07ff39765440fdbae8b30 /src/bts.h | |
parent | ace7b570a047b7ee36557091c10918240c4b8ff3 (diff) |
tbf: Pass the MS object around instead of old_tbf
Currently the old TBF (either uplink or downlink) is passed around at
TBF allocation mainly to get information about the MS. To implement
more complex allocation algorithms, the MS object itself will be
needed anyway.
This commit replaces the old_tbf arguments by MS object arguments.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/bts.h')
-rw-r--r-- | src/bts.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -37,6 +37,7 @@ extern "C" { #include <stdint.h> struct BTS; +struct GprsMs; /* * PDCH instance @@ -138,7 +139,7 @@ struct gprs_rlcmac_bts { uint8_t n3105; struct gprs_rlcmac_trx trx[8]; int (*alloc_algorithm)(struct gprs_rlcmac_bts *bts, - struct gprs_rlcmac_tbf *old_tbf, + struct GprsMs *ms, struct gprs_rlcmac_tbf *tbf, uint32_t cust, uint8_t single); uint32_t alloc_algorithm_curst; /* options to customize algorithm */ uint8_t force_two_phase; |