All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Query retry counters
@ 2011-01-04 13:06 Lucas De Marchi
  2011-01-04 13:06 ` [PATCH v2 1/4] include: add method to query pin Retries Lucas De Marchi
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Lucas De Marchi @ 2011-01-04 13:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

Here is the second implementation for the retry counter task. The difference
from the previous approach is that now a dict with all the available retry
counters is returned. This way is possible to query the retry counter even when
PinRequired == None, what allows us to properly handle calls to EnterPin(),
LockPin(), UnlockPin() and so on.

The dict has the form { pin = 3, puk = 10, ... }. The driver implementation for
huawei modem is done using its proprietary command, which returns 4 counters:

{SimManager} [/huawei0] Retries = { pin2 = 3, puk2 = 10, pin = 3, puk = 10 }

Lucas De Marchi (4):
  include: add method to query pin Retries
  sim: query remaining pin retries
  doc: detail Retries property
  atmodem: implement query for remaining pin retries

 doc/sim-api.txt       |   12 ++++++
 drivers/atmodem/sim.c |   99 +++++++++++++++++++++++++++++++++++++++++++++++
 include/sim.h         |   11 +++++
 src/sim.c             |  102 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 224 insertions(+), 0 deletions(-)

-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-04 17:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-04 13:06 [PATCH v2 0/4] Query retry counters Lucas De Marchi
2011-01-04 13:06 ` [PATCH v2 1/4] include: add method to query pin Retries Lucas De Marchi
2011-01-04 17:11   ` Denis Kenzior
2011-01-04 13:06 ` [PATCH v2 2/4] sim: query remaining pin retries Lucas De Marchi
2011-01-04 17:13   ` Denis Kenzior
2011-01-04 17:26     ` Lucas De Marchi
2011-01-04 17:29       ` Denis Kenzior
2011-01-04 13:06 ` [PATCH v2 3/4] doc: detail Retries property Lucas De Marchi
2011-01-04 13:06 ` [PATCH v2 4/4] atmodem: implement query for remaining pin retries Lucas De Marchi
2011-01-04 13:20 ` [PATCH v2 0/4] Query retry counters Sankar
2011-01-04 14:24   ` Lucas De Marchi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.