summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/subscriber.h
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-05-23 22:53:32 +0200
committerAndreas.Eversberg2010-05-23 22:53:32 +0200
commitba59a8cb513c6064442213289a3cb531edbc8f8f (patch)
treeed151876734bb4b60cfe17f271b998600390dc9a /src/host/layer23/include/osmocom/subscriber.h
parentFixes of layer23 processes during tests of MNCC interface. (diff)
downloadosmocom-ba59a8cb513c6064442213289a3cb531edbc8f8f.tar.gz
osmocom-ba59a8cb513c6064442213289a3cb531edbc8f8f.tar.xz
osmocom-ba59a8cb513c6064442213289a3cb531edbc8f8f.zip
Added more commands to VTY, especially selecting test SIM and configure it.
The test card can now be configured, as if it is already registered to a network. So it will directly select the strongest cell of last scan.
Diffstat (limited to 'src/host/layer23/include/osmocom/subscriber.h')
-rw-r--r--src/host/layer23/include/osmocom/subscriber.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/host/layer23/include/osmocom/subscriber.h b/src/host/layer23/include/osmocom/subscriber.h
index 0091cb2..371ca88 100644
--- a/src/host/layer23/include/osmocom/subscriber.h
+++ b/src/host/layer23/include/osmocom/subscriber.h
@@ -20,6 +20,12 @@ struct gsm_sub_plmn_na {
#define GSM_IMSI_LENGTH 16
+enum {
+ GSM_SIM_TYPE_NONE = 0,
+ GSM_SIM_TYPE_SLOT,
+ GSM_SIM_TYPE_TEST
+};
+
struct gsm_subscriber {
struct osmocom_ms *ms;
@@ -65,7 +71,7 @@ struct gsm_subscriber {
int gsm_subscr_init(struct osmocom_ms *ms);
int gsm_subscr_exit(struct osmocom_ms *ms);
-int gsm_subscr_testcard(struct osmocom_ms *ms, int mcc, int mnc, char *msin);
+int gsm_subscr_testcard(struct osmocom_ms *ms);
int gsm_subscr_remove(struct osmocom_ms *ms);
void new_sim_ustate(struct gsm_subscriber *subscr, int state);
int gsm_subscr_del_forbidden_plmn(struct gsm_subscriber *subscr, uint16_t mcc,
@@ -76,6 +82,7 @@ int gsm_subscr_is_forbidden_plmn(struct gsm_subscriber *subscr, uint16_t mcc,
uint16_t mnc);
void gsm_subscr_dump(struct gsm_subscriber *subscr,
void (*print)(void *, const char *, ...), void *priv);
+char *gsm_check_imsi(char *imsi, uint16_t *mcc, uint16_t *mnc);
#endif /* _SUBSCRIBER_H */