summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-07-04 16:48:02 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-07-05 09:04:53 +0200
commit00efd6e25a0b25fb3fb8cf994191329468cc3eef (patch)
tree192f544807675f9883900521323beaa77b738aed /src/device.c
parentc0593bc9ff2541b01d674d8b4aa4371fade91866 (diff)
downloadconnman-00efd6e25a0b25fb3fb8cf994191329468cc3eef.tar.gz
connman-00efd6e25a0b25fb3fb8cf994191329468cc3eef.tar.bz2
connman-00efd6e25a0b25fb3fb8cf994191329468cc3eef.zip
device: Add capability to notify on regulatory domain setting
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c13
1 files changed, 13 insertions, 0 deletions
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;