diff options
author | Petteri Tikander <petteri.tikander@ixonos.com> | 2010-10-15 00:02:52 +0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-10-15 02:19:43 -0500 |
commit | 44bb8635381af673e93faad5a2a607a3881646e1 (patch) | |
tree | 527f4de61bccfe96afe0644de4889e133b256beb /drivers | |
parent | 84efadcf5a648391b5665e810618485d71644738 (diff) | |
download | ofono-44bb8635381af673e93faad5a2a607a3881646e1.tar.bz2 |
isimodem: returns file-status of SIM EF-file
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isimodem/sim.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/isimodem/sim.c b/drivers/isimodem/sim.c index 44e539a8..d978c85d 100644 --- a/drivers/isimodem/sim.c +++ b/drivers/isimodem/sim.c @@ -54,6 +54,7 @@ struct file_info { int structure; int record_length; unsigned char access[3]; + unsigned char file_status; }; /* Returns file info */ @@ -66,7 +67,7 @@ static gboolean fake_file_info(gpointer user) DBG("Returning static file_info for %04x", fi->fileid); CALLBACK_WITH_SUCCESS(cb, fi->length, fi->structure, fi->record_length, - fi->access, cbd->data); + fi->access, fi->file_status, cbd->data); g_free(cbd); return FALSE; } @@ -76,8 +77,8 @@ static void isi_read_file_info(struct ofono_sim *sim, int fileid, { int i; static struct file_info const info[] = { - { SIM_EFSPN_FILEID, 17, 0, 0, { 0x0f, 0xff, 0xff } }, - { SIM_EF_ICCID_FILEID, 10, 0, 0, { 0x0f, 0xff, 0xff } }, + { SIM_EFSPN_FILEID, 17, 0, 0, { 0x0f, 0xff, 0xff }, 1 }, + { SIM_EF_ICCID_FILEID, 10, 0, 0, { 0x0f, 0xff, 0xff }, 1 }, }; int N = sizeof(info) / sizeof(info[0]); struct isi_cb_data *cbd; @@ -91,7 +92,7 @@ static void isi_read_file_info(struct ofono_sim *sim, int fileid, } DBG("Not implemented (fileid = %04x)", fileid); - CALLBACK_WITH_FAILURE(cb, -1, -1, -1, NULL, data); + CALLBACK_WITH_FAILURE(cb, -1, -1, -1, NULL, 0, data); } static gboolean spn_resp_cb(GIsiClient *client, |