From 3918e90dc3553e0619704c0488acfe9a5fee28c9 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 27 Aug 2019 11:00:52 +0200 Subject: pcu_sock: fix endian-swapped CellID Restore the correct endianness of the cell identity stored in the system information type 3 struct, just like we do it with the location area code. Related: OS#3854 Change-Id: I68faf4558f0686fb2a3db24077dceaae05bf0262 --- src/common/pcu_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index 36cc6edf..84a98f5e 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -259,7 +259,7 @@ static int pcu_if_signal_cb(unsigned int subsys, unsigned int signal, bts->si_buf[SYSINFO_TYPE_3]; osmo_plmn_from_bcd(si3->lai.digits, &net->plmn); bts->location_area_code = ntohs(si3->lai.lac); - bts->cell_identity = si3->cell_identity; + bts->cell_identity = ntohs(si3->cell_identity); avail_lai = 1; break; case S_NEW_NSE_ATTR: -- cgit v1.2.3