Added support to get country-code. 72/258472/1
authorNiraj Kumar Goit <niraj.g@samsung.com>
Tue, 18 May 2021 07:54:27 +0000 (13:24 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Tue, 18 May 2021 07:54:27 +0000 (13:24 +0530)
Change-Id: I880450f406c48490f5952452f0e586ca4d0d3c9e
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
src/technology.c

index 34476df..016541c 100644 (file)
@@ -726,6 +726,10 @@ static void append_properties(DBusMessageIter *iter,
        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);
 }