On Tue, Aug 1, 2017 at 12:31 PM, Carlo Lobrano <c.lobr...@gmail.com> wrote:
>> Aren't the sim hot swap unsolicited messages received always, regardless
>> of whether the modem is enabled or disabled?
>
> disabling_stopped function releases both ports contexts, so we don't receive
> unsolicited on SIM swap ports.
>

Wait, I don't think that's ok. The SIM swap ports context is allocated
during initialization, and should exist until the object is destroyed.
We shouldn't be removing this context when the disable() happens,
otherwise we wouldn't get SIM hot swap events when the modem is
disabled.

-- 
Aleksander
https://aleksander.es
_______________________________________________
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to