summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/ofono.c5
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);