~connman-maintainers/ofono/trunk

Viewing all changes in revision 8550.

  • Committer: Denis Kenzior
  • Author(s): Nandini Rebello
  • Date: 2019-01-23 23:44:31 UTC
  • Revision ID: git-v1:f36d6d05ccfc8faddf611a8ad74502a0c3276265
sim: Sim PIN1 cache upon modem reset/crash

Adding SIM PIN caching feature to oFono. oFono now caches the SIM PIN1
type against the ICCID throughout its lifetime in a link list and
enters implicitly upon modem reset/crash.

Note, that this behavior can violate 3GPP spec 21.111, section 5.3 -
User Data stored in ME if that section is interpreted very strictly.
However, our interpretation is that firmware resets are allowed, based
on historic precedent.  Helps in user experience by not barring out
cellular services unless pin is entered manually.

Handles cases of incorrect pin and sim pin changed externally.
Clear cached PIN incase modem disabled manually and selectively when
sim is removed.

Seperate 'pin_cache_enter_cb' added without dbus calls to handle
implict entering of cached pin.

For now this behavior is applicable to all modems by default.  In the
future it may be needed to make this behavior opt in or otherwise
configurable.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: