aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-03-26 16:18:17 +0700
committerpespin <pespin@sysmocom.de>2020-03-27 14:55:22 +0000
commitce160147f46a4f3024768da755d142e76b557fdb (patch)
tree3c362926cfe6b44c7d8797fababdaf107a79fbda
parentd71c566ee68c7e39b7e1869d3a453f24f253ef92 (diff)
pdch: cosmetic: use GSM_MI_TYPE_* constants from libosmocore
-rw-r--r--src/pdch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdch.cpp b/src/pdch.cpp
index 9910974..9b4d89b 100644
--- a/src/pdch.cpp
+++ b/src/pdch.cpp
@@ -209,7 +209,7 @@ struct msgb *gprs_rlcmac_pdch::packet_paging_request()
osmo_mi_name(pag->identity_lv + 1, pag->identity_lv[0]));
/* try to add paging */
- if ((pag->identity_lv[1] & 0x07) == 4) {
+ if ((pag->identity_lv[1] & GSM_MI_TYPE_MASK) == GSM_MI_TYPE_TMSI) {
/* TMSI */
len = 1 + 1 + 1 + 32 + 2 + 1;
if (pag->identity_lv[0] != 5) {