mirror of
https://github.com/sailfishos/ofono
synced 2025-11-24 03:19:44 +08:00
Merge pull request #192 from jkangas/next
Request for pulling direct SPDI reading without service table check to next branch
This commit is contained in:
@@ -2106,18 +2106,14 @@ void ofono_netreg_register(struct ofono_netreg *netreg)
|
|||||||
ofono_sim_add_spn_watch(netreg->sim, &netreg->spn_watch,
|
ofono_sim_add_spn_watch(netreg->sim, &netreg->spn_watch,
|
||||||
spn_read_cb, netreg, NULL);
|
spn_read_cb, netreg, NULL);
|
||||||
|
|
||||||
if (__ofono_sim_service_available(netreg->sim,
|
ofono_sim_read(netreg->sim_context, SIM_EFSPDI_FILEID,
|
||||||
SIM_UST_SERVICE_PROVIDER_DISPLAY_INFO,
|
OFONO_SIM_FILE_STRUCTURE_TRANSPARENT,
|
||||||
SIM_SST_SERVICE_PROVIDER_DISPLAY_INFO)) {
|
sim_spdi_read_cb, netreg);
|
||||||
ofono_sim_read(netreg->sim_context, SIM_EFSPDI_FILEID,
|
|
||||||
OFONO_SIM_FILE_STRUCTURE_TRANSPARENT,
|
|
||||||
sim_spdi_read_cb, netreg);
|
|
||||||
|
|
||||||
ofono_sim_add_file_watch(netreg->sim_context,
|
ofono_sim_add_file_watch(netreg->sim_context,
|
||||||
SIM_EFSPDI_FILEID,
|
SIM_EFSPDI_FILEID,
|
||||||
sim_spdi_changed,
|
sim_spdi_changed,
|
||||||
netreg, NULL);
|
netreg, NULL);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__ofono_atom_register(netreg->atom, netreg_unregister);
|
__ofono_atom_register(netreg->atom, netreg_unregister);
|
||||||
|
|||||||
Reference in New Issue
Block a user