[PATCH] Support 51.011 EFecc format.

Andrzej Zaborowski andrew.zaborowski at intel.com
Fri Dec 18 15:58:36 PST 2009


Hi Denis,

2009/12/18 Denis Kenzior <denkenz at gmail.com>:
> So I think this is the right approach, but lets tweak it a bit.  According to
> 51.011 EFphase can always be read.  So even if 51.011 tells us to read it
> after PIN has been verified there's nothing (theoretically) preventing us from
> doing so earlier.
>
> Thus we can do it in one of two ways
>
> 1. Read EFphase on startup and block the rest of the sim file queue until we
> determined the phase.  Then kick off the sim file ops queue as normal.  Here we
> can even shortcut the 'select' operation since we always know the length of
> the file.  Just use read_binary straight away here.
>
> 2. Proceed as we do today, but do not cache any file until we know EFphase.
> For EFecc we make sure that EFphase is read after EFecc.  This results in us
> always reading EFecc at startup.
>
> It is important to note that in both approaches we get rid of the race
> conditions of running the sim ops queue and querying cpin & imsi in parallel.

Here's a patch following 1. but I think you can take either patch.
Note that we already know that no file gets cached until imsi is
retrieved, imsi doesn't get retrieved before  EFphase and EFphase
isn't read before our PIN situation is sorted out.

Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Index-SIM-cache-by-phase-also.patch
Type: text/x-patch
Size: 5215 bytes
Desc: not available
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20091219/7e04ddbb/attachment.bin>


More information about the ofono mailing list