diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-04-20 16:42:54 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-04-21 14:36:28 +0200 |
commit | b53230acecfea4040d93059a957e837ae2756c14 (patch) | |
tree | 418678da81cf773f278bf50551f4da7e7afa7446 /src/gprs_ms.h | |
parent | c5104b7f3097d8760da53a923761b2377529cfcb (diff) |
ms: Get rid of ms->delay field
Simply apply the content of the configured timer when the MS goes idle.
Having that field is convenient to do tricky stuff in unit tests, but
makes the main osmo-pcu app more complex for no good enough reason.
Change-Id: I8d44318b37b6605afd84db8ccec0d75e6db293b9
Diffstat (limited to 'src/gprs_ms.h')
-rw-r--r-- | src/gprs_ms.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h index 03508ffc..4f6456e7 100644 --- a/src/gprs_ms.h +++ b/src/gprs_ms.h @@ -80,7 +80,6 @@ struct GprsMs { struct osmo_use_count use_count; struct osmo_timer_list timer; - unsigned delay; int64_t last_cs_not_low; @@ -216,11 +215,6 @@ static inline enum mcs_kind ms_mode(const struct GprsMs *ms) return ms->mode; } -static inline void ms_set_timeout(struct GprsMs *ms, unsigned secs) -{ - ms->delay = secs; -} - static inline unsigned ms_nack_rate_dl(const struct GprsMs *ms) { return ms->nack_rate_dl; |