summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/mobile/settings.h
diff options
context:
space:
mode:
authorSylvain Munaut2010-07-27 20:44:46 +0200
committerSylvain Munaut2010-07-27 20:49:27 +0200
commit9e9f99c0a094a3b82a75bbac33cabc2be8a6bacb (patch)
tree24f420eb61d8204c93ae1f369221626e2c27a948 /src/host/layer23/include/osmocom/bb/mobile/settings.h
parentlayer23: Split [1/2] -> The source code (diff)
downloadosmocom-9e9f99c0a094a3b82a75bbac33cabc2be8a6bacb.tar.gz
osmocom-9e9f99c0a094a3b82a75bbac33cabc2be8a6bacb.tar.xz
osmocom-9e9f99c0a094a3b82a75bbac33cabc2be8a6bacb.zip
layer23: Split [2/2] -> The header files
This split the headers and adapt the source. We use osmocom/bb as a prefix because libosomore also uses osmocom and generic names such as misc & common could conflict in the future. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/mobile/settings.h')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/settings.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/settings.h b/src/host/layer23/include/osmocom/bb/mobile/settings.h
new file mode 100644
index 0000000..be13d20
--- /dev/null
+++ b/src/host/layer23/include/osmocom/bb/mobile/settings.h
@@ -0,0 +1,42 @@
+#ifndef _settings_h
+#define _settings_h
+
+struct gsm_settings {
+ /* IMEI */
+ char imei[16];
+ char imeisv[17];
+ char imei_random;
+
+ /* network search */
+ int plmn_mode; /* PLMN_MODE_* */
+
+ /* SIM */
+ int simtype; /* selects card on power on */
+ char emergency_imsi[20]; /* just in case... */
+
+ /* test card simulator settings */
+ char test_imsi[20]; /* just in case... */
+ uint8_t test_barr;
+ uint8_t test_rplmn_valid;
+ uint16_t test_rplmn_mcc, test_rplmn_mnc;
+ uint8_t test_always; /* ...search hplmn... */
+
+ /* call related settings */
+ uint8_t cw; /* set if call-waiting is allowed */
+ uint8_t clip, clir;
+
+ /* changing default behavior */
+ uint8_t alter_tx_power;
+ uint8_t alter_tx_power_value;
+ int8_t alter_delay;
+ uint8_t stick;
+ uint16_t stick_arfcn;
+ uint8_t no_lupd;
+};
+
+int gsm_settings_init(struct osmocom_ms *ms);
+char *gsm_check_imei(const char *imei, const char *sv);
+int gsm_random_imei(struct gsm_settings *set);
+
+#endif /* _settings_h */
+