aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/gprs/gprs_test.ok
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-01-19 08:27:34 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-26 08:41:52 +0100
commit79af67d7c02a25e36146369b60f7f25c9655c862 (patch)
tree468c21be4858535fa99bad0714b05feae2475490 /openbsc/tests/gprs/gprs_test.ok
parent37184900e7f4f8566fbd71914f55b3cc8c0196e9 (diff)
gprs: Add GPRS timer conversion functions
Currently, all GPRS timer values are hard-coded. To make these values configurable in seconds and to show them, conversion functions from and to seconds are needed. This patch adds gprs_tmr_to_secs and gprs_secs_to_tmr_floor. Due to the limited number of bits used to encode GPRS timer values, only a few durations can be represented. gprs_secs_to_tmr_floor therefore always returns the timer value that represents either the exact number (if an exact representation exists) or the next lower number for that an exact representation exists. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/gprs/gprs_test.ok')
-rw-r--r--openbsc/tests/gprs/gprs_test.ok1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/tests/gprs/gprs_test.ok b/openbsc/tests/gprs/gprs_test.ok
index 4825b67cd..cf710769e 100644
--- a/openbsc/tests/gprs/gprs_test.ok
+++ b/openbsc/tests/gprs/gprs_test.ok
@@ -27,4 +27,5 @@ Test GSUP message decoding/encoding
Testing Purge MS Request
Testing Purge MS Error
Testing Purge MS Result
+Test GPRS timer decoding/encoding
Done.