From: Niraj Kumar Goit Date: Wed, 12 May 2021 14:26:20 +0000 (+0530) Subject: Added support to set country-code. X-Git-Tag: accepted/tizen/unified/20210601.135338~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad8ef20b95a15bfa535ecaab236c0217cb207af0;p=platform%2Fupstream%2Fconnman.git Added support to set country-code. Change-Id: I6919f3ca4a794eeee7d75a3824c0fc3a22031d06 Signed-off-by: Niraj Kumar Goit --- diff --git a/src/technology.c b/src/technology.c index c476b3e..34476df 100644 --- a/src/technology.c +++ b/src/technology.c @@ -1490,6 +1490,13 @@ static DBusMessage *set_property(DBusConnection *conn, return set_random_mac_lifetime(technology, msg, random_mac_lifetime); else return __connman_error_invalid_arguments(msg); + + } else if (g_str_equal(name, "CountryCode")) { + const char *str; + + dbus_message_iter_get_basic(&value, &str); + DBG("country code %s", str); + connman_technology_set_regdom(str); #endif } else return __connman_error_invalid_property(msg);