summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/device.h2
-rw-r--r--src/device.c13
2 files changed, 15 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h
index f4e802e1..d066296f 100644
--- a/include/device.h
+++ b/include/device.h
@@ -110,6 +110,8 @@ void connman_device_set_data(struct connman_device *device, void *data);
int connman_device_set_regdom(struct connman_device *device,
const char *alpha2);
+void connman_device_regdom_notify(struct connman_device *device,
+ int result, const char *alpha2);
struct connman_device_driver {
const char *name;
diff --git a/src/device.c b/src/device.c
index 43ebb6c4..ec732b83 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1061,6 +1061,19 @@ int connman_device_set_regdom(struct connman_device *device,
return device->driver->set_regdom(device, alpha2);
}
+/**
+ * connman_device_regdom_notify
+ * @device: device structure
+ * @alpha2: string representing regulatory domain
+ *
+ * Notify on setting regulatory domain on device basis
+ */
+void connman_device_regdom_notify(struct connman_device *device,
+ int result, const char *alpha2)
+{
+ __connman_technology_notify_regdom_by_device(device, result, alpha2);
+}
+
int __connman_device_request_scan(enum connman_service_type type)
{
connman_bool_t success = FALSE;