From 5e62fe711fd3835213a987e14b38ae864e5781aa Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 16 Dec 2011 16:38:20 -0600 Subject: network: CPHS Short SPN bits do not apply to SPN --- src/network.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'src/network.c') diff --git a/src/network.c b/src/network.c index de1dbf49..cbfaec47 100644 --- a/src/network.c +++ b/src/network.c @@ -1760,12 +1760,10 @@ static void sim_spn_read_cb(int ok, int length, int record, struct ofono_netreg *netreg = user_data; if (!ok) { - if (__ofono_sim_cphs_service_available(netreg->sim, - SIM_CPHS_SERVICE_SHORT_SPN)) - ofono_sim_read(netreg->sim_context, - SIM_EF_CPHS_SPN_FILEID, - OFONO_SIM_FILE_STRUCTURE_TRANSPARENT, - sim_cphs_spn_read_cb, netreg); + ofono_sim_read(netreg->sim_context, + SIM_EF_CPHS_SPN_FILEID, + OFONO_SIM_FILE_STRUCTURE_TRANSPARENT, + sim_cphs_spn_read_cb, netreg); return; } @@ -2243,19 +2241,18 @@ void ofono_netreg_register(struct ofono_netreg *netreg) sim_spn_changed, netreg, NULL); + ofono_sim_add_file_watch(netreg->sim_context, + SIM_EF_CPHS_SPN_FILEID, + sim_cphs_spn_changed, netreg, + NULL); + if (__ofono_sim_cphs_service_available(netreg->sim, - SIM_CPHS_SERVICE_SHORT_SPN)) { + SIM_CPHS_SERVICE_SHORT_SPN)) ofono_sim_add_file_watch(netreg->sim_context, SIM_EF_CPHS_SPN_SHORT_FILEID, sim_cphs_spn_short_changed, netreg, NULL); - ofono_sim_add_file_watch(netreg->sim_context, - SIM_EF_CPHS_SPN_FILEID, - sim_cphs_spn_changed, netreg, - NULL); - } - if (__ofono_sim_service_available(netreg->sim, SIM_UST_SERVICE_PROVIDER_DISPLAY_INFO, SIM_SST_SERVICE_PROVIDER_DISPLAY_INFO)) { -- cgit v1.2.3