aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-08-27 11:00:52 +0200
committerOliver Smith <osmith@sysmocom.de>2019-08-27 11:02:27 +0200
commit3918e90dc3553e0619704c0488acfe9a5fee28c9 (patch)
treeab1b660e7be991975c6675f9f98894bb1c927152
parentfc917d91bf0f52fb0fca9c750865001b6972e158 (diff)
pcu_sock: fix endian-swapped CellIDosmith/pcu-tests
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
-rw-r--r--src/common/pcu_sock.c2
1 files changed, 1 insertions, 1 deletions
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: