diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-09-03 13:54:37 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-09-05 14:30:17 +0200 |
commit | f53fde91a36eff2601df9811fddee97b8f89d6ee (patch) | |
tree | 4fab4e91ba2be64871a04406d2d257f4e6f221b8 /include/osmo-bts | |
parent | cb57028d52b711dfbc27dacf0b82c5a12f1f71c2 (diff) |
ETWS Primary Notification via P1 Rest Octets
The ETWS (Earthquake and Tsunami Warning System) uses a so-called
ETWS Primary Notification which is sent
* to phones in dedicated mode (via DCCH from the BSC)
* to phones in idle mode (via P1 Rest Octets on PCH/CCCH)
This patch implements the second part of the functionality, i.e.
transmitting the related ETWS Primary Notification via PCH. As
3GPP doesn't specify how this is communicated over Abis, we use
a new, vendor-specific RSL message type.
Closes: OS#4047
Depends: libosmocore I89c24a81ada6627694a9632e87485a61cbd3e680
Depends: libosmocore I36fc2ffc22728887d1cb8768c7fcd9739a8ec0fc
Change-Id: I18c60cdb86b9c19e09f5ec06d66e9b91608880e6
Diffstat (limited to 'include/osmo-bts')
-rw-r--r-- | include/osmo-bts/gsm_data_shared.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h index dd2a14c0..65e984d4 100644 --- a/include/osmo-bts/gsm_data_shared.h +++ b/include/osmo-bts/gsm_data_shared.h @@ -479,6 +479,7 @@ enum gsm_bts_features { BTS_FEAT_SPEECH_F_EFR, BTS_FEAT_SPEECH_F_AMR, BTS_FEAT_SPEECH_H_AMR, + BTS_FEAT_ETWS_PN, _NUM_BTS_FEAT }; @@ -718,6 +719,15 @@ struct gsm_bts { uint64_t pch_msgs; } agch_queue; + struct { + uint8_t *prim_notif; /* ETWS primary notification (NULL if none) */ + ssize_t prim_notif_len; /* Length of prim_notif; expected 56 bytes */ + uint8_t page_size; + uint8_t num_pages; /* total number of pages */ + uint8_t next_page; /* next page number to be sent */ + bool pni; /* Primary Notification Identifier */ + } etws; + struct paging_state *paging_state; char *bsc_oml_host; struct llist_head oml_queue; |