From b53230acecfea4040d93059a957e837ae2756c14 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 20 Apr 2023 16:42:54 +0200 Subject: 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 --- src/gprs_ms.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/gprs_ms.h') 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; -- cgit v1.2.3