Added support to set country-code. 37/258237/1
authorNiraj Kumar Goit <niraj.g@samsung.com>
Wed, 12 May 2021 14:26:20 +0000 (19:56 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Wed, 12 May 2021 14:26:20 +0000 (19:56 +0530)
Change-Id: I6919f3ca4a794eeee7d75a3824c0fc3a22031d06
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
src/technology.c

index c476b3e..34476df 100644 (file)
@@ -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);