diff options
author | Oliver Smith <osmith@sysmocom.de> | 2022-04-26 16:53:14 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2022-05-02 15:21:28 +0200 |
commit | 159246f94f233ecb3c0b610588747b414cfdb9ce (patch) | |
tree | 0702185f160b3ab4b0f49a81552114b76488cc88 /include | |
parent | aa6404f3f82fb05111d92b57d4db1546002ebca2 (diff) |
Check VTY config against features reported by BTS
* Don't copy features for osmo-bts and nanobts initially, wait until
BTS reported its features
* Checks for BTS features in VTY cmds: pass if features are not known
(not yet reported by the BTS), fail if the feature is missing
* Once BTS reports its features, check relevant VTY config parts again
Related: SYS#5922, OS#5538
Change-Id: I7fca42a39a4bc98a6ea8b9cfab28c4bad3a6a0aa
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/bsc/bts.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h index 7d51707be..008eee524 100644 --- a/include/osmocom/bsc/bts.h +++ b/include/osmocom/bsc/bts.h @@ -295,9 +295,12 @@ struct gsm_bts_model { struct tlv_definition nm_att_tlvdef; - /* features of a given BTS model set via gsm_bts_model_register() locally */ + /* features of a given BTS model set via gsm_bts_model_register() + * locally, see doc/bts-features.txt */ struct bitvec features; uint8_t _features_data[MAX_BTS_FEATURES/8]; + /* BTS reports features during OML bring up */ + bool features_get_reported; }; struct gsm_gprs_cell { @@ -334,9 +337,13 @@ struct gsm_bts { char version[MAX_VERSION_LENGTH]; char sub_model[MAX_VERSION_LENGTH]; - /* features of a given BTS set/reported via OML */ + /* features of a given BTS either hardcoded or set/reported via OML, + * see doc/bts-features.txt */ struct bitvec features; uint8_t _features_data[MAX_BTS_FEATURES/8]; + /* Features have been reported by the BTS or were copied from the BTS + * model */ + bool features_known; /* Connected PCU version (if any) */ char pcu_version[MAX_VERSION_LENGTH]; |