aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/gprs_utils.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-01-02 13:37:14 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2023-01-02 13:38:01 +0100
commitbc46812bd7c45fc148c24b734eec1a7cbb9c6ea6 (patch)
tree39a6a635eac129baf1627ca0148c4217746a62e8 /src/gprs/gprs_utils.c
parent4398ac073b7fc8363882b5f7414470b73d4f446a (diff)
Move gprs_tmr_to_secs() to tests/gprs/gprs_test.c
That function is only used in the test. Let's hence move the function to the same test file in order to simplify osmo-sgsn code. Change-Id: I69d80810362d75eb93974af34f61639514f99f8a
Diffstat (limited to 'src/gprs/gprs_utils.c')
-rw-r--r--src/gprs/gprs_utils.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gprs/gprs_utils.c b/src/gprs/gprs_utils.c
index 632718aa9..3eac330ed 100644
--- a/src/gprs/gprs_utils.c
+++ b/src/gprs/gprs_utils.c
@@ -64,22 +64,6 @@ int gprs_str_to_apn(uint8_t *apn_enc, size_t max_len, const char *str)
return len;
}
-/* GSM 04.08, 10.5.7.3 GPRS Timer */
-int gprs_tmr_to_secs(uint8_t tmr)
-{
- switch (tmr & GPRS_TMR_UNIT_MASK) {
- case GPRS_TMR_2SECONDS:
- return 2 * (tmr & GPRS_TMR_FACT_MASK);
- default:
- case GPRS_TMR_MINUTE:
- return 60 * (tmr & GPRS_TMR_FACT_MASK);
- case GPRS_TMR_6MINUTE:
- return 360 * (tmr & GPRS_TMR_FACT_MASK);
- case GPRS_TMR_DEACTIVATED:
- return -1;
- }
-}
-
/* This functions returns a tmr value such that
* - f is monotonic
* - f(s) <= s