diff options
author | Яницкий Ва дим <axilirator@gmail.com> | 2016-01-10 19:14:18 +0600 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2016-01-18 21:08:45 +0100 |
commit | bec943f0b7b46680c107d9ee634a6e281222aa20 (patch) | |
tree | 4f9c7a036e436beded37c7c48f69fd1a4e80561e /src/host/layer23/src/mobile/app_mobile.c | |
parent | 65f05ce618fc79466d7ea9810361289c6119abdb (diff) |
host/mobile: Improved SAP interface integration
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: Яницкий Ва дим <axilirator@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host/layer23/src/mobile/app_mobile.c')
-rw-r--r-- | src/host/layer23/src/mobile/app_mobile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c index 3895ad67..e0767416 100644 --- a/src/host/layer23/src/mobile/app_mobile.c +++ b/src/host/layer23/src/mobile/app_mobile.c @@ -115,6 +115,9 @@ int mobile_signal_cb(unsigned int subsys, unsigned int signal, set->test_rplmn_mnc, set->test_lac, set->test_tmsi, set->test_imsi_attached); break; + case GSM_SIM_TYPE_SAP: + gsm_subscr_sapcard(ms); + break; default: /* no SIM, trigger PLMN selection process */ nmsg = gsm322_msgb_alloc(GSM322_EVENT_SWITCH_ON); |