:: Re: [maemo-leste] qmi+motmdm ofono …
Top Pagina
Delete this message
Reply to this message
Auteur: Merlijn Wajer
Datum:  
Aan: Pavel Machek
CC: maemo-leste, mpartap, sre, martin_rysavy, nekit1000, Tony Lindgren
Onderwerp: Re: [maemo-leste] qmi+motmdm ofono version was Re: alsactl trouble was Re: Grand plan to get make phones... phone (for Motorola Droid 4)
Hi,

On 23/05/2020 12:20, Pavel Machek wrote:
> Hi!
>
>> ofonod[28585]: < U0015~+CIEV=1,0,0\n
>> ofonod[28585]: src/voicecall.c:ofono_voicecall_disconnected() Got
>> disconnection event for id: 1, reason: 2
>> ofonod[28585]: < U0016~+WAKEUP\n
>> ofonod[28585]: < U0017~+WAKEUP\n
>> ofonod[28585]: < U0018~+WAKEUP\n
>> ofonod[28585]: < U0019~+GCMT=244\r07912460200999900414D0D4F...\n
>> ofonod[28585]: < U0020~+WAKEUP\n
>> ofonod[28585]: < U0021~+WAKEUP\n
>> ofonod[28585]: < U0022~+WAKEUP\n
>> ofonod[28585]: < U0023~+GCMT=244\r07912460200999900414D0D4F...\n
>>
>> Let me see if I can figure it out/ merge the versions together.
>
> I have something hacked up (really hacked up) that seems to work a
> bit. I pushed it to the git.


Will try to give it a spin. Meanwhile, I have a hack-fix for showing
technology with Tony's ofono.

https://wizzup.org/droid4-tech.png
https://wizzup.org/droid4-tech-2g.png

> diff --git a/drivers/qmimodem/network-registration.c b/drivers/qmimodem/network-registration.c
> index 04f20c66..7a006f6b 100644
> --- a/drivers/qmimodem/network-registration.c
> +++ b/drivers/qmimodem/network-registration.c
> @@ -111,7 +111,10 @@ static bool extract_ss_info(struct qmi_result *result, int *status,
>         for (i = 0; i < ss->radio_if_count; i++) {
>                 DBG("radio in use %d", ss->radio_if[i]);

>
> -               *tech = qmi_nas_rat_to_tech(ss->radio_if[i]);
> +               int tmp = qmi_nas_rat_to_tech(ss->radio_if[i]);
> +               if (tmp != -1)
> +                       *tech = tmp;


Pending proper fix.

Cheers,
Merlijn