From 89077bfd2abf7984027552c8cee223a0c6dab57c Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Wed, 4 Jul 2012 16:48:00 +0300 Subject: device: Add driver capability to set regulatory domain on device basis --- src/device.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index f2f3ce5e..43ebb6c4 100644 --- a/src/device.c +++ b/src/device.c @@ -1045,6 +1045,22 @@ struct connman_device *__connman_device_find_device( return NULL; } +/** + * connman_device_set_regdom + * @device: device structure + * @alpha2: string representing regulatory domain + * + * Set regulatory domain on device basis + */ +int connman_device_set_regdom(struct connman_device *device, + const char *alpha2) +{ + if (device->driver == NULL || device->driver->set_regdom == NULL) + return -ENOTSUP; + + return device->driver->set_regdom(device, alpha2); +} + int __connman_device_request_scan(enum connman_service_type type) { connman_bool_t success = FALSE; -- cgit v1.2.3