From 2060bbb4c1f46802c808e8880e3f60a8b9c46168 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 19 Dec 2020 17:33:41 +0100 Subject: gsm_08_58: fix wrong field order in 'struct ipac_preproc_pc_thresh' Thanks to the CLI of nanoBTS, I noticed that upper and lower RxQual thresholds are sent in wrong order. Only the little-endian variant needs to be fixed, the big-endian one looks good. Change-Id: If6ab2377bae6742f871589b529a349498775552f Related: SYS#4918 --- include/osmocom/gsm/protocol/gsm_08_58.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/osmocom') diff --git a/include/osmocom/gsm/protocol/gsm_08_58.h b/include/osmocom/gsm/protocol/gsm_08_58.h index 0f7af925..046d3585 100644 --- a/include/osmocom/gsm/protocol/gsm_08_58.h +++ b/include/osmocom/gsm/protocol/gsm_08_58.h @@ -787,8 +787,8 @@ struct ipac_preproc_pc_thresh { #if OSMO_IS_LITTLE_ENDIAN uint8_t l_rxlev:6, reserved_l_rxlev:2; uint8_t u_rxlev:6, reserved_u_rxlev:2; - uint8_t l_rxqual:3, reserved_l_rxqual:1, - u_rxqual:3, reserved_u_rxqual:1; + uint8_t u_rxqual:3, reserved_u_rxqual:1, + l_rxqual:3, reserved_l_rxqual:1; #elif OSMO_IS_BIG_ENDIAN uint8_t reserved_l_rxlev:2, l_rxlev:6; uint8_t reserved_u_rxlev:2, u_rxlev:6; -- cgit v1.2.3