problem with dell latitude

Bartłomiej Knabel bartlomiej.knabel at gmail.com
Tue Jul 18 13:25:52 UTC 2017


How this piece of source code should look like?

static void
power_up_context_step (PowerUpContext *ctx)
{
    switch (ctx->step) {
    case POWER_UP_CONTEXT_STEP_FIRST:
        set_radio_state_up (ctx);
        return;

#if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED
# error if this fails, were good

    case POWER_UP_CONTEXT_STEP_QMI_DEVICE_NEW:
        set_radio_state_qmi_device_new (ctx);
        return;

    case POWER_UP_CONTEXT_STEP_QMI_DEVICE_OPEN:
        set_radio_state_qmi_device_open (ctx);
        return;


2017-07-18 15:05 GMT+02:00 Aleksander Morgado <aleksander at aleksander.es>:

> On Tue, Jul 18, 2017 at 2:38 PM, Bartłomiej Knabel
> <bartlomiej.knabel at gmail.com> wrote:
> > after recompiling in given order result is the same:
> >
> > # cat /usr/include/libqmi-glib/qmi-version.h  | grep "define
> >> QMI_MBIM_QMUX_SUPPORTED"
> > #define _QMI_VERSION_H_
> >  * This section defines types that are used to identify the libqmi-glib
> > version.
> > #define QMI_MAJOR_VERSION (1)
> > #define QMI_MINOR_VERSION (18)
> > #define QMI_MICRO_VERSION (0)
> > #define QMI_CHECK_VERSION(major,minor,micro)                         \
> >  * QMI_MBIM_QMUX_SUPPORTED:
> >  * defined and set to either or 1 or 0.
> >  *  #if QMI_MBIM_QMUX_SUPPORTED
> > #define QMI_MBIM_QMUX_SUPPORTED 1
> >
> > and one more time output from MM --debug:
> >
> > https://pastebin.com/KJsnvp4t
>
> Ok, let's check the hard way, please modify
> src/mm-broadband-modem-mbim.c and add the following #error line:
>
> diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
> index 7188d2f8..56fa81f1 100644
> --- a/src/mm-broadband-modem-mbim.c
> +++ b/src/mm-broadband-modem-mbim.c
> @@ -1262,6 +1262,7 @@ power_up_context_step (PowerUpContext *ctx)
>          return;
>
>  #if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED
> +# error if this fails, we're good
>
>      case POWER_UP_CONTEXT_STEP_QMI_DEVICE_NEW:
>
> If it doesn't fail, please check whether QMI support is being included
> in ModemManager (i.e. is "qmi: yes" being reported in the configure
> report?)
>
> --
> Aleksander
> https://aleksander.es
>



-- 
pozdrawiam,
Bartłomiej Knabel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170718/2f47662b/attachment-0001.html>


More information about the ModemManager-devel mailing list