diff options
author | Jussi Laakkonen <jussi.laakkonen@jolla.com> | 2022-04-05 17:31:16 +0300 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2022-04-08 09:17:36 +0200 |
commit | cb87ddd2f5905782b45c0e46277fcf7f32de16af (patch) | |
tree | 6ca10cc7810a828c50d7aa566017cea49cc61cf4 | |
parent | bce73f1bdbf1aa6fc28d2f75b7780f4f1d8b0e3a (diff) | |
download | connman-cb87ddd2f5905782b45c0e46277fcf7f32de16af.tar.gz |
ofono: Do not change regdom when it follows timezone
-rw-r--r-- | plugins/ofono.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c index f0bd3c5d..8bb53949 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -40,6 +40,7 @@ #include <connman/dbus.h> #include <connman/log.h> #include <connman/technology.h> +#include <connman/setting.h> #include "mcc.h" @@ -1710,6 +1711,10 @@ static void netreg_update_regdom(struct modem_data *modem, char *alpha2; int mcc; + /* Do not change regdom here if it is set to follow timezone. */ + if (connman_setting_get_bool("RegdomFollowsTimezone")) + return; + dbus_message_iter_get_basic(value, &mobile_country_code); DBG("%s MobileContryCode %s", modem->path, mobile_country_code); |