aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-19 17:33:41 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-19 17:33:52 +0100
commit2060bbb4c1f46802c808e8880e3f60a8b9c46168 (patch)
tree232750fac35d00b0d3517299c5beec793f4baf50 /include/osmocom
parent8fef761d14585e92528eda6cdb2a7b31154bcc70 (diff)
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
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/gsm/protocol/gsm_08_58.h4
1 files changed, 2 insertions, 2 deletions
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;