diff options
author | Sean Nyekjaer <sean@geanix.com> | 2021-05-31 13:49:31 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2021-06-01 10:52:48 -0500 |
commit | 7ce4b77138c7d2c57f1f1e12f4a994a5ac8beb9b (patch) | |
tree | ff578d5fbbdf730f4115df4a08164e45944ed59e | |
parent | 985cf1a6824fcb2d94bcbcfa69b8330fab76eb6a (diff) | |
download | ofono-7ce4b77138c7d2c57f1f1e12f4a994a5ac8beb9b.tar.gz |
radio-settings: Add handling of dual mode technology preference
Allow setting of "lte,gsm" mode,
for modems that doesn't support ANY mode.
-rw-r--r-- | src/radio-settings.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radio-settings.c b/src/radio-settings.c index 7283aa98..02bb90cd 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)) + 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; |