aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcommon/gsm_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcommon/gsm_data.c')
-rw-r--r--src/libcommon/gsm_data.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libcommon/gsm_data.c b/src/libcommon/gsm_data.c
index db7de082..7c717a40 100644
--- a/src/libcommon/gsm_data.c
+++ b/src/libcommon/gsm_data.c
@@ -471,3 +471,13 @@ void gsm_bts_set_radio_link_timeout(struct gsm_bts *bts, int value)
cell_options->radio_link_timeout = (value >> 2) - 1;
}
}
+
+bool classmark_is_r99(struct gsm_classmark *cm)
+{
+ int rev_lev = 0;
+ if (cm->classmark1_set)
+ rev_lev = cm->classmark1.rev_lev;
+ else if (cm->classmark2_len > 0)
+ rev_lev = (cm->classmark2[0] >> 5) & 0x3;
+ return rev_lev >= 2;
+}