aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-20 20:59:08 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-21 00:31:11 +0200
commit067824841f6b1139e3a926b355826454a3f371b2 (patch)
treee91b1d5195d14420699a7fa303340e8e4169d5c0 /include
parent89bfea63c9e4e3a308288fcb98e48bf88919e246 (diff)
cbch: Support Extended CBCH
The logic for Extended CBCH are the same as for the Basic CBCH, we just need to * duplicate our related state * parse the optional RSL_IE_SMSCB_CHAN_INDICATOR IE * start to send data on the Extended CBCH (TB=4..7) Change-Id: If2c6dc7da1e2185ab75fc957f8d305ad8db22429 Closes: OS#3535
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/cbch.h5
-rw-r--r--include/osmo-bts/gsm_data_shared.h14
2 files changed, 11 insertions, 8 deletions
diff --git a/include/osmo-bts/cbch.h b/include/osmo-bts/cbch.h
index b4ac409f..af5fd9a3 100644
--- a/include/osmo-bts/cbch.h
+++ b/include/osmo-bts/cbch.h
@@ -7,9 +7,8 @@
#include <osmo-bts/bts.h>
/* incoming SMS broadcast command from RSL */
-int bts_process_smscb_cmd(struct gsm_bts *bts,
- struct rsl_ie_cb_cmd_type cmd_type,
- uint8_t msg_len, const uint8_t *msg);
+int bts_process_smscb_cmd(struct gsm_bts *bts, struct rsl_ie_cb_cmd_type cmd_type,
+ bool extended_cbch, uint8_t msg_len, const uint8_t *msg);
/* call-back from bts model specific code when it wants to obtain a CBCH
* block for a given gsm_time. outbuf must have 23 bytes of space. */
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h
index 6974e622..93787304 100644
--- a/include/osmo-bts/gsm_data_shared.h
+++ b/include/osmo-bts/gsm_data_shared.h
@@ -539,6 +539,12 @@ struct gprs_rlc_cfg {
uint8_t initial_mcs;
};
+struct bts_smscb_state {
+ struct llist_head queue; /* list of struct smscb_msg */
+ struct smscb_msg *cur_msg; /* current SMS-CB */
+ struct smscb_msg *default_msg; /* default broadcast message; NULL if none */
+};
+
/* The amount of time within which a sudden disconnect of a newly established
* OML connection will cause a special warning to be logged. */
#define OSMO_BTS_OML_CONN_EARLY_DISCONNECT 10 /* in seconds */
@@ -734,11 +740,9 @@ struct gsm_bts {
/* used by the sysmoBTS to adjust band */
uint8_t auto_band;
- struct {
- struct llist_head queue; /* list of struct smscb_msg */
- struct smscb_msg *cur_msg; /* current SMS-CB */
- struct smscb_msg *default_msg; /* default broadcast message; NULL if none */
- } smscb_state;
+ /* State for SMSCB (Cell Broadcast) for BASIC and EXTENDED channel */
+ struct bts_smscb_state smscb_basic;
+ struct bts_smscb_state smscb_extended;
float min_qual_rach; /* minimum quality for RACH bursts */
float min_qual_norm; /* minimum quality for normal daata */