Huawei plugin sometimes fails to load operator code
aleksander at lanedo.com
Tue Aug 20 00:23:24 PDT 2013
On 19/08/13 19:50, Ben Chan wrote:
> If the unsolicited message handler callback is set to NULL, the
> message is still consumed and then discarded, which prevents a
> solicited ^RFSWITCH? from getting a response.
> How about this:
> - Add an enable flag to MMAtUnsolicitedMsgHandler, which is set to
> TRUE by mm_at_serial_port_enable_unsolicited_msg_handler (for both new
> or overwriting case)
> - Add mm_at_serial_port_enable_unsolicited_msg_handler(self, regex,
> enable) to enable/disable a unsolicited message handler.
> - Disable the unsolicited ^RFSWITCH handler right before calling
> ^RFSWITCH?, re-enable it upon receiving a response for ^RFSWITCH? or
Looks fine to me; Dan what do you think of this logic?
More information about the ModemManager-devel