diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-12-10 19:26:27 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-01-06 10:26:46 +0000 |
commit | 5530f12f71862ff0bf6357e4d12f7034151abb96 (patch) | |
tree | f837d5209d98a2e745ca5516c28ec0e154962d61 /src/gprs_rlcmac.cpp | |
parent | d7c3265223268c920fb24df5c7b6e29a54284571 (diff) |
Allow Gb PAGING-PS without P-TMSI
P-TMSI is optional IE, but IE is mandatory and hence always available.
Since the encoding is actually a Mobile Identity, the IMSI is used in
case P-TMSI is not available.
Change-Id: I4dbf8db04e81f98352a42ce34a5d91326be9bfd1
Diffstat (limited to 'src/gprs_rlcmac.cpp')
-rw-r--r-- | src/gprs_rlcmac.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gprs_rlcmac.cpp b/src/gprs_rlcmac.cpp index cbfc87f4..c8900214 100644 --- a/src/gprs_rlcmac.cpp +++ b/src/gprs_rlcmac.cpp @@ -19,6 +19,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +extern "C" { + #include <osmocom/gsm/gsm48.h> +} + #include <pcu_l1_if.h> #include <gprs_rlcmac.h> #include <bts.h> @@ -28,13 +32,13 @@ extern void *tall_pcu_ctx; -int gprs_rlcmac_paging_request(uint8_t *ptmsi, uint16_t ptmsi_len, - uint16_t pgroup) +int gprs_rlcmac_paging_request(const uint8_t *mi, uint8_t mi_len, uint16_t pgroup) { - LOGP(DRLCMAC, LOGL_NOTICE, "TX: [PCU -> BTS] Paging Request (CCCH)\n"); + LOGP(DRLCMAC, LOGL_NOTICE, "TX: [PCU -> BTS] Paging Request (CCCH) MI=%s\n", + osmo_mi_name(mi, mi_len)); bitvec *paging_request = bitvec_alloc(22, tall_pcu_ctx); bitvec_unhex(paging_request, DUMMY_VEC); - int plen = Encoding::write_paging_request(paging_request, ptmsi, ptmsi_len); + int plen = Encoding::write_paging_request(paging_request, mi, mi_len); pcu_l1if_tx_pch(paging_request, plen, pgroup); bitvec_free(paging_request); |