From bec943f0b7b46680c107d9ee634a6e281222aa20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AF=D0=BD=D0=B8=D1=86=D0=BA=D0=B8=D0=B9=20=D0=92=D0=B0?= =?UTF-8?q?=20=D0=B4=D0=B8=D0=BC?= Date: Sun, 10 Jan 2016 19:14:18 +0600 Subject: host/mobile: Improved SAP interface integration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1) Now the SAP interface is selectable as SIM source using the 'sim sap' command in VTY. 2) SAP connection starts only if it is configured as SIM source. 3) Fixed sap_socket_path configuration r/w errors. Written-by: Яницкий Ва дим Signed-off-by: Sylvain Munaut --- src/host/layer23/include/osmocom/bb/mobile/subscriber.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/host/layer23/include/osmocom/bb/mobile/subscriber.h') diff --git a/src/host/layer23/include/osmocom/bb/mobile/subscriber.h b/src/host/layer23/include/osmocom/bb/mobile/subscriber.h index 79a2ecca..ac785d4a 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/subscriber.h +++ b/src/host/layer23/include/osmocom/bb/mobile/subscriber.h @@ -23,7 +23,8 @@ struct gsm_sub_plmn_na { enum { GSM_SIM_TYPE_NONE = 0, GSM_SIM_TYPE_READER, - GSM_SIM_TYPE_TEST + GSM_SIM_TYPE_TEST, + GSM_SIM_TYPE_SAP }; struct gsm_subscriber { @@ -86,6 +87,8 @@ int gsm_subscr_init(struct osmocom_ms *ms); int gsm_subscr_exit(struct osmocom_ms *ms); int gsm_subscr_testcard(struct osmocom_ms *ms, uint16_t mcc, uint16_t mnc, uint16_t lac, uint32_t tmsi, uint8_t imsi_attached); +int gsm_subscr_sapcard(struct osmocom_ms *ms); +int gsm_subscr_remove_sapcard(struct osmocom_ms *ms); int gsm_subscr_simcard(struct osmocom_ms *ms); void gsm_subscr_sim_pin(struct osmocom_ms *ms, char *pin1, char *pin2, int8_t mode); -- cgit v1.2.3