aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-10-26 12:40:11 +0100
committerpespin <pespin@sysmocom.de>2020-10-29 11:34:17 +0000
commit528820dbe13d47de6f92e22993b6704f5e61b2e4 (patch)
tree4a960100976939367b505b0fb95b4bbde98f7f64 /src/tbf.h
parent87c6dd3c265df114357dda6c3e601f4754689b9f (diff)
tbf: Clean up gprs_rlcmac_dl_tbf::handle()
Avoid passing tons of params to internal helper function tbf_nel_dl_assignment() in order to either fetch again the ms object or create a new one. Let's instead create the ms function earlier if needed and fill it with all the discovered information prior to calling the helper function. This provides cleaner code and also better log output. This way we also avoid trying to fill the MS twice and unneeded getter+setter for TA. tbf::imsi(): There' always an ms, so simply forward call to ms()->imsi(). We can also get rid of assign_imsi, since the modified code is the only place where it's used and there's already some code in place there to update the MS. We instead merge it with set_imsi and keep the duplication code to catch possible bugs from callers. Move merge_and_clear_ms from tbf class to GprsMS, where it really belongs. Change-Id: Id18098bac3cff26fc4a8d2f419e21641a1f4c83b
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tbf.h b/src/tbf.h
index a591f38b..549b7075 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -250,7 +250,6 @@ struct gprs_rlcmac_tbf {
bool is_tfi_assigned() const;
const char *imsi() const;
- void assign_imsi(const char *imsi);
uint8_t ta() const;
void set_ta(uint8_t);
uint8_t ms_class() const;