wireguard: Fix struct sockaddr usage
[platform/upstream/connman.git] / src / technology.c
index 34476df..c2c82b9 100644 (file)
@@ -711,6 +711,7 @@ static void append_properties(DBusMessageIter *iter,
                                        DBUS_TYPE_STRING,
                                        &technology->tethering_passphrase);
 
+#if defined TIZEN_EXT
        connman_dbus_dict_append_basic(&dict, "MacPolicy",
                                        DBUS_TYPE_UINT32,
                                        &(technology->mac_policy));
@@ -722,10 +723,14 @@ static void append_properties(DBusMessageIter *iter,
        connman_dbus_dict_append_basic(&dict, "RandomMacLifetime",
                                        DBUS_TYPE_UINT32,
                                        &(technology->random_mac_lifetime));
-#if defined TIZEN_EXT
+
        if (technology->type == CONNMAN_SERVICE_TYPE_WIFI)
                connman_dbus_dict_append_dict(&dict, "Device.List",
                                        append_devices, technology);
+       if (technology->regdom)
+               connman_dbus_dict_append_basic(&dict, "CountryCode",
+                                       DBUS_TYPE_STRING,
+                                       &technology->regdom);
 #endif
        connman_dbus_dict_close(iter, &dict);
 }