<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 2:18 AM, Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On 03/03/14 09:57, Ben Chan wrote:<br>
>> > Doing this would also allow trying to set ON and LOW power states<br>
>> > while in Failed state. How about also modifying the power setting<br>
>> > logic itself so that only OFF is allowed while in Failed state?<br>
>> ><br>
> handle_set_power_state_auth_ready in mm-iface-modem.c already performs the<br>
> check. Is there other place we should check as well?<br>
><br>
<br>
</div></div>Ah true, true, my bad. Pushed then to git master.<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>BTW, is there a reason that we want to disallow putting modem in lower power mode when the SIM is missing? I think the lower power mode usually means turning off the RF, which seems independent of the SIM. AFAIK, the modems I've tested seem to accept AT+CFUN=4 in absence of the SIM, but I wouldn't be surprised if some modems behave differently.</div>
<div><br></div><div>On a related note, some modems can be configured to turn of the SIM interface after the RF is turned off. So if the RF is turned off before ModemManager initializes the modem, the +CPIN? check may conclude that the SIM is missing and put the modem in the failed state.</div>
<div><br></div><div>Thanks,</div><div>Ben</div><div> </div></div></div></div>