aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-20 14:36:18 +0300
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-21 21:11:28 +0300
commit8db64ee81019d046fc61c61db77dacfadfe5165b (patch)
tree9e954735cf24ff0c87e3c4047bf40240462f5755 /include
parent0a9430ee48dd1297b0f07446d60feaa4c8981ffd (diff)
gsm_08_58: extend struct abis_rsl_osmo_temp_ovp_acch_cap
This change adds new [bit-]fields in order to allow: * selectively enabling SACCH and/or FACCH, * setting the RxQual (BER) threshold. Change-Id: Ia28293a12de0af71f55e701fb65c46e905dae217 Related: SYS#5319
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/protocol/gsm_08_58.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_08_58.h b/include/osmocom/gsm/protocol/gsm_08_58.h
index fd22d91a..b46f9f53 100644
--- a/include/osmocom/gsm/protocol/gsm_08_58.h
+++ b/include/osmocom/gsm/protocol/gsm_08_58.h
@@ -141,7 +141,17 @@ struct abis_rsl_osmo_rep_acch_cap {
/* Osmocom specific IE to negotiate temporary overpower of ACCH channels */
struct abis_rsl_osmo_temp_ovp_acch_cap {
- uint8_t overpower_db;
+#if OSMO_IS_BIG_ENDIAN
+ uint8_t sacch_enable:1,
+ facch_enable:1,
+ rxqual:3,
+ overpower_db:3;
+#elif OSMO_IS_LITTLE_ENDIAN
+ uint8_t overpower_db:3,
+ rxqual:3,
+ facch_enable:1,
+ sacch_enable:1;
+#endif
} __attribute__ ((packed));
/* Chapter 9.1 */