cdc-wdm: unable to connect after suspend

Aleksander Morgado aleksander at aleksander.es
Fri Jun 13 07:19:26 PDT 2014


On Fri, Jun 13, 2014 at 3:56 PM, Aleksander Morgado
<aleksander at aleksander.es> wrote:
> On Thu, Jun 12, 2014 at 10:10 PM, Florian Klink <flokli at flokli.de> wrote:
>>> Well, I guess we should try to detect the indication and if so, use it
>>> as 'reply' to the request we sent. Luckily both the indication and the
>>> response will have the same info:
>>>
>>>     imbim_message_register_state_notification_parse (
>>>             notification,
>>>             NULL, /* nw_error */
>>>             &register_state,
>>>             NULL, /* register_mode */
>>>             &available_data_classes,
>>>             NULL, /* current_cellular_class */
>>>             &provider_id,
>>>             &provider_name,
>>>             NULL, /* roaming_text */
>>>             NULL, /* registration_flag */
>>>             NULL)
>>>
>>>         mbim_message_register_state_response_parse (
>>>             response,
>>>             NULL, /* nw_error */
>>>             &register_state,
>>>             NULL, /* register_mode */
>>>             &available_data_classes,
>>>             NULL, /* current_cellular_class */
>>>             &provider_id,
>>>             &provider_name,
>>>             NULL, /* roaming_text */
>>>             NULL, /* registration_flag */
>>>             NULL)
>>>
>>> Ugly hack, but I guess there's no other way to handle this firmware issue?
>>
>>
>> I'd think this approach at least seems to be less error-prone than the
>> one suggested below. Can you provide me a patch that treats the
>> indication as a reply?
>> I never touched libmbim, but I'd happily test a patch :-)
>
> The patch should go into ModemManager, but yes, I'll try to write one
> for you to test.


Attached is a (n untested!) ModemManager patch to try to handle this
issue, please test.

Pretty ugly approach, but if that is the only way to handle the
registration checks.... :/

-- 
Aleksander
https://aleksander.es
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-broadband-modem-mbim-support-finishing-registration-.patch
Type: text/x-patch
Size: 5995 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20140613/0c7e52a3/attachment.bin>


More information about the ModemManager-devel mailing list