sim: Fix SIM re-init case of SIM Refresh
authorDenis Kenzior <denkenz@gmail.com>
Thu, 22 Nov 2012 12:45:10 +0000 (06:45 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 22 Nov 2012 12:50:08 +0000 (06:50 -0600)
commitb97e79b3df36e09274d52179e746ceb89b599935
tree8ce2b2c4fc0de8d34edda681ed865f18cdc5ea83
parent03bc21af88fd3f6bb250b50eace2de92470267c4
sim: Fix SIM re-init case of SIM Refresh

When the SIM is being refreshed, we try to access the SIM too fast after
the SIM REFRESH proactive command is received.  Instead set the sim atom
into the 'RESETTING' state and wait until the modem driver signals the
sim insertion again.
src/sim.c