All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 2/3] radio-settings: Add handling of dual mode technology preference
       [not found] <20210531114932.68629-2-sean@geanix.com>
@ 2021-06-01 15:53 ` Denis Kenzior
  0 siblings, 0 replies; only message in thread
From: Denis Kenzior @ 2021-06-01 15:53 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]

Hi Sean,

On 5/31/21 6:49 AM, Sean Nyekjaer wrote:
> Allow setting of "lte,gsm" mode,
> for modems that doesn't support ANY mode.
> ---
>   src/radio-settings.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/src/radio-settings.c b/src/radio-settings.c
> index 7283aa98..e2e5f33b 100644
> --- a/src/radio-settings.c
> +++ b/src/radio-settings.c
> @@ -79,6 +79,9 @@ static const char *radio_access_mode_to_string(enum ofono_radio_access_mode m)
>   	if (m == (OFONO_RADIO_ACCESS_MODE_LTE|OFONO_RADIO_ACCESS_MODE_UMTS))
>   		return "lte,umts";
>   
> +	if (m = (OFONO_RADIO_ACCESS_MODE_LTE|OFONO_RADIO_ACCESS_MODE_GSM))

I think you meant '==' here, so I fixed that.

> +		return "lte,gsm";
> +
>   	return NULL;
>   }
>   
> @@ -104,6 +107,9 @@ static gboolean radio_access_mode_from_string(const char *str,
>   	} else if (g_str_equal(str, "lte,umts")) {
>   		*mode = OFONO_RADIO_ACCESS_MODE_LTE|OFONO_RADIO_ACCESS_MODE_UMTS;
>   		return TRUE;
> +	} else if (g_str_equal(str, "lte,gsm")) {
> +		*mode = OFONO_RADIO_ACCESS_MODE_LTE|OFONO_RADIO_ACCESS_MODE_GSM;
> +		return TRUE;
>   	}
>   
>   	return FALSE;
> 

All three patches applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-01 15:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210531114932.68629-2-sean@geanix.com>
2021-06-01 15:53 ` [PATCH 2/3] radio-settings: Add handling of dual mode technology preference Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.